private static class ClassDefinition.MemberData
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private int |
access
Access mode.
|
private Aast |
ast
The AST for this member definition.
|
private java.lang.Long |
astId
The AST's ID for this member definition.
|
private ClassDefinition |
container
The containing class where this was defined.
|
private int |
extent
Extent value (defaults to 0, which means scalar) of the return type.
|
private boolean |
isStatic
Static or instance member.
|
private java.lang.String |
javaname
The converted Java name for this member.
|
private java.lang.String |
modes
The parameter modes.
|
private java.lang.String |
name
Text name.
|
private boolean |
provisional
Marker for OO vars which are gathered during pre-scan, and they might not be actual class
members (as pre-scan processes DEFINE VAR statements at all levels, including methods).
|
private java.lang.String |
qname
Class type name for members that return an object instance.
|
private java.util.Map<java.lang.String,java.lang.Object> |
retType
All annotations set at the method's return type.
|
private ParameterKey[] |
signature
Parameter signature for methods.
|
private int |
tempIdx
Temporary ID.
|
private int |
type
Token type.
|
private Variable |
var
Associated variable instance for data members.
|
Constructor and Description |
---|
MemberData(java.lang.String name,
Variable var,
ParameterKey[] signature,
int type,
int access,
boolean isStatic,
java.lang.String qname,
ClassDefinition container,
int tempIdx,
java.util.Map<java.lang.String,java.lang.Object> retType)
Create an instance, setting the data members.
|
Modifier and Type | Method and Description |
---|---|
void |
parseFinished()
The parse for this entire file has finished, and the AST IDs have been computed.
|
void |
setProvisional(boolean provisional)
Set the
provisional state of this member. |
java.lang.String |
toString()
Render the state of the instance in a text form.
|
private java.lang.String name
private int type
private int extent
private int access
private int tempIdx
private boolean isStatic
private java.lang.String qname
private ParameterKey[] signature
private Variable var
private ClassDefinition container
private java.lang.String modes
private boolean provisional
private Aast ast
private java.lang.Long astId
private java.util.Map<java.lang.String,java.lang.Object> retType
private java.lang.String javaname
public MemberData(java.lang.String name, Variable var, ParameterKey[] signature, int type, int access, boolean isStatic, java.lang.String qname, ClassDefinition container, int tempIdx, java.util.Map<java.lang.String,java.lang.Object> retType)
name
- The name of the member.var
- Associated variable instance for data members or null
.signature
- Parameter signature for methods or null
.type
- The token type associated with the member.access
- Access mode (KW_PUBLIC
,
KW_PROTECTD
or KW_PRIVATE
).isStatic
- true
if the variable/property is static.qname
- Fully qualified class name where type
equals
OO_METH_CLASS
. null
if this method
does not return an object instance.container
- The container class definition.tempIdx
- Temporary ID.public void parseFinished()
public void setProvisional(boolean provisional)
provisional
state of this member.provisional
- The new state.public java.lang.String toString()
toString
in class java.lang.Object