Package org.glassfish.rmic.iiop
Class CompoundType.Member
- java.lang.Object
-
- org.glassfish.rmic.iiop.CompoundType.Member
-
- All Implemented Interfaces:
java.lang.Cloneable
,ContextElement
- Enclosing class:
- CompoundType
public class CompoundType.Member extends java.lang.Object implements ContextElement, java.lang.Cloneable
An CompoundType.Member object wraps a Type and a value representing a data member, including constants.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
constant
private boolean
forceTransient
private java.lang.String
idlName
private boolean
innerClassDecl
private MemberDefinition
member
private java.lang.String
name
private Type
type
private java.lang.String
value
private java.lang.String
vis
-
Constructor Summary
Constructors Constructor Description Member(MemberDefinition member, java.lang.String value, ContextStack stack, CompoundType enclosing)
Create a new Member object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
clone()
Cloning is supported by returning a shallow copy of this object.void
destroy()
Release all resources.java.lang.String
getElementName()
Return context element name.java.lang.String
getIDLName()
IDL_Naming Return the IDL name of this member.protected MemberDefinition
getMemberDefinition()
java.lang.String
getName()
Return the name of this member.Type
getType()
Return the type of this member.java.lang.String
getValue()
Return the value of this member.java.lang.String
getVisibility()
Return the visibility (e.g.void
init(ContextStack stack, CompoundType enclosing)
boolean
isConstant()
Return true if this member represents a constant.boolean
isFinal()
boolean
isInnerClassDeclaration()
Return true if this member represents an inner class declaration, false otherwise.boolean
isPrivate()
boolean
isPublic()
Methods to check various attributes.boolean
isStatic()
boolean
isTransient()
void
setIDLName(java.lang.String name)
protected void
setTransient()
protected void
swapInvalidTypes()
Convert all invalid types to valid ones.java.lang.String
toString()
Return the string representation of this constant.
-
-
-
Field Detail
-
type
private Type type
-
vis
private java.lang.String vis
-
value
private java.lang.String value
-
name
private java.lang.String name
-
idlName
private java.lang.String idlName
-
innerClassDecl
private final boolean innerClassDecl
-
constant
private boolean constant
-
member
private MemberDefinition member
-
forceTransient
private boolean forceTransient
-
-
Constructor Detail
-
Member
public Member(MemberDefinition member, java.lang.String value, ContextStack stack, CompoundType enclosing)
Create a new Member object.
-
-
Method Detail
-
getElementName
public java.lang.String getElementName()
Return context element name.- Specified by:
getElementName
in interfaceContextElement
-
getType
public Type getType()
Return the type of this member.
-
getName
public java.lang.String getName()
Return the name of this member.
-
getIDLName
public java.lang.String getIDLName()
IDL_Naming Return the IDL name of this member.
-
getVisibility
public java.lang.String getVisibility()
Return the visibility (e.g. "public final") of this member.
-
isPublic
public boolean isPublic()
Methods to check various attributes.
-
isPrivate
public boolean isPrivate()
-
isStatic
public boolean isStatic()
-
isFinal
public boolean isFinal()
-
isTransient
public boolean isTransient()
-
getValue
public java.lang.String getValue()
Return the value of this member. May be null.
-
isInnerClassDeclaration
public boolean isInnerClassDeclaration()
Return true if this member represents an inner class declaration, false otherwise.
-
isConstant
public boolean isConstant()
Return true if this member represents a constant.
-
toString
public java.lang.String toString()
Return the string representation of this constant.- Overrides:
toString
in classjava.lang.Object
-
swapInvalidTypes
protected void swapInvalidTypes()
Convert all invalid types to valid ones.
-
setTransient
protected void setTransient()
-
getMemberDefinition
protected MemberDefinition getMemberDefinition()
-
destroy
public void destroy()
Release all resources.
-
init
public void init(ContextStack stack, CompoundType enclosing)
-
setIDLName
public void setIDLName(java.lang.String name)
-
clone
protected java.lang.Object clone()
Cloning is supported by returning a shallow copy of this object.- Overrides:
clone
in classjava.lang.Object
-
-