Class ExpressionFactory.ExpressionBase
- java.lang.Object
-
- org.glassfish.pfl.dynamic.codegen.impl.AttributedObjectBase
-
- org.glassfish.pfl.dynamic.codegen.impl.NodeBase
-
- org.glassfish.pfl.dynamic.codegen.impl.ExpressionFactory.ExpressionBase
-
- All Implemented Interfaces:
AttributedObject,ExpressionInternal,Node,Statement,Expression,CopyInterceptor
- Direct Known Subclasses:
ExpressionFactory.ArrayIndexExpression,ExpressionFactory.ArrayLengthExpression,ExpressionFactory.BinaryOperatorExpression,ExpressionFactory.CallExpression,ExpressionFactory.CastExpression,ExpressionFactory.ConstantExpression,ExpressionFactory.FieldAccessExpressionBase,ExpressionFactory.IfExpression,ExpressionFactory.InstofExpression,ExpressionFactory.NewArrExpression,ExpressionFactory.NewObjExpression,ExpressionFactory.SuperCallExpression,ExpressionFactory.SuperObjExpression,ExpressionFactory.ThisExpression,ExpressionFactory.ThisObjExpression,ExpressionFactory.UnaryOperatorExpression,ExpressionFactory.VariableImpl,ExpressionFactory.VoidExpression
- Enclosing class:
- ExpressionFactory
public abstract static class ExpressionFactory.ExpressionBase extends NodeBase implements ExpressionInternal
-
-
Field Summary
Fields Modifier and Type Field Description private ExpressionFactoryexpressionFactory
-
Constructor Summary
Constructors Constructor Description ExpressionBase(ExpressionFactory ef)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voidaccept(Visitor v)Accept the visitor and allow it to perform actions on this Node.<T extends Node>
Tcopy(java.lang.Class<T> cls)Make a deep copy of this node.<T extends Node>
Tcopy(Node newParent, java.lang.Class<T> cls)Copy setting a new parent in the result.booleanisAssignable()-
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.NodeBase
getAncestor, id, parent, parent, postCopy, preCopy, toString
-
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.AttributedObjectBase
attributes, get, set
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.glassfish.pfl.dynamic.codegen.impl.AttributedObject
attributes, get, set
-
Methods inherited from interface org.glassfish.pfl.dynamic.codegen.impl.ExpressionInternal
type
-
Methods inherited from interface org.glassfish.pfl.dynamic.codegen.impl.Node
getAncestor, id, parent, parent
-
-
-
-
Field Detail
-
expressionFactory
@Copy(IDENTITY) private ExpressionFactory expressionFactory
-
-
Constructor Detail
-
ExpressionBase
public ExpressionBase(ExpressionFactory ef)
-
-
Method Detail
-
isAssignable
public boolean isAssignable()
- Specified by:
isAssignablein interfaceExpressionInternal
-
copy
public <T extends Node> T copy(java.lang.Class<T> cls)
Description copied from interface:NodeMake a deep copy of this node. If nn = n.copy(), then n.parent() == nn.parent(), which also means that the parent is NOT copied.
-
copy
public <T extends Node> T copy(Node newParent, java.lang.Class<T> cls)
Description copied from interface:NodeCopy setting a new parent in the result.
-
-