org.glassfish.pfl.dynamic.codegen.impl
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
 List<Object> attributes()
          Internal method for dynamic attribute support.
 Object get(int index)
          Internal method for dynamic attribute support.
 void set(int index, Object obj)
          Internal method for dynamic attribute support.
 

Method Detail

get

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,
         Object obj)
Internal method for dynamic attribute support. Set the attribute at index to obj.


attributes

List<Object> attributes()
Internal method for dynamic attribute support. Return all attributes for this node (may be null).



Copyright © 2013 Oracle. All Rights Reserved.