Interface AttributedObject
-
- All Known Subinterfaces:
ExpressionInternal
,Node
,Statement
,VariableInternal
- All Known Implementing Classes:
AssignmentStatement
,AttributedObjectBase
,BlockStatement
,BreakStatement
,CaseBranch
,ClassGeneratorImpl
,DefinitionStatement
,ExpressionFactory.ArrayIndexExpression
,ExpressionFactory.ArrayLengthExpression
,ExpressionFactory.BinaryOperatorExpression
,ExpressionFactory.CallExpression
,ExpressionFactory.CastExpression
,ExpressionFactory.ConstantExpression
,ExpressionFactory.ExpressionBase
,ExpressionFactory.FieldAccessExpressionBase
,ExpressionFactory.IfExpression
,ExpressionFactory.InstofExpression
,ExpressionFactory.NewArrExpression
,ExpressionFactory.NewObjExpression
,ExpressionFactory.NonStaticCallExpression
,ExpressionFactory.NonStaticFieldAccessExpression
,ExpressionFactory.StaticCallExpression
,ExpressionFactory.StaticFieldAccessExpression
,ExpressionFactory.SuperCallExpression
,ExpressionFactory.SuperObjExpression
,ExpressionFactory.ThisExpression
,ExpressionFactory.ThisObjExpression
,ExpressionFactory.UnaryOperatorExpression
,ExpressionFactory.VariableImpl
,ExpressionFactory.VoidExpression
,FieldGenerator
,IfStatement
,MethodGenerator
,NodeBase
,ReturnStatement
,StatementBase
,SwitchStatement
,ThrowStatement
,TryStatement
,WhileStatement
public interface AttributedObject
The interface that an Object must implement in order to support Attributes. The get and set methods are only for use by the Attribute class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<java.lang.Object>
attributes()
Internal method for dynamic attribute support.java.lang.Object
get(int index)
Internal method for dynamic attribute support.void
set(int index, java.lang.Object obj)
Internal method for dynamic attribute support.
-
-
-
Method Detail
-
get
java.lang.Object get(int index)
Internal method for dynamic attribute support. Return the value of the attribute at index. If the attribute at index is not set, set it to the default value and return the default.
-
set
void set(int index, java.lang.Object obj)
Internal method for dynamic attribute support. Set the attribute at index to obj.
-
attributes
java.util.List<java.lang.Object> attributes()
Internal method for dynamic attribute support. Return all attributes for this node (may be null).
-
-