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