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 booleanconstantprivate booleanforceTransientprivate java.lang.StringidlNameprivate booleaninnerClassDeclprivate MemberDefinitionmemberprivate java.lang.Stringnameprivate Typetypeprivate java.lang.Stringvalueprivate java.lang.Stringvis
-
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.Objectclone()Cloning is supported by returning a shallow copy of this object.voiddestroy()Release all resources.java.lang.StringgetElementName()Return context element name.java.lang.StringgetIDLName()IDL_Naming Return the IDL name of this member.protected MemberDefinitiongetMemberDefinition()java.lang.StringgetName()Return the name of this member.TypegetType()Return the type of this member.java.lang.StringgetValue()Return the value of this member.java.lang.StringgetVisibility()Return the visibility (e.g.voidinit(ContextStack stack, CompoundType enclosing)booleanisConstant()Return true if this member represents a constant.booleanisFinal()booleanisInnerClassDeclaration()Return true if this member represents an inner class declaration, false otherwise.booleanisPrivate()booleanisPublic()Methods to check various attributes.booleanisStatic()booleanisTransient()voidsetIDLName(java.lang.String name)protected voidsetTransient()protected voidswapInvalidTypes()Convert all invalid types to valid ones.java.lang.StringtoString()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:
getElementNamein 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:
toStringin 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:
clonein classjava.lang.Object
-
-