Class ExpressionFactory.VariableImpl
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
org.glassfish.pfl.dynamic.codegen.impl.ExpressionFactory.VariableImpl
- All Implemented Interfaces:
AttributedObject, ExpressionInternal, Node, Statement, VariableInternal, Expression, Variable, CopyInterceptor
- Enclosing class:
ExpressionFactory
public static final class ExpressionFactory.VariableImpl
extends ExpressionFactory.ExpressionBase
implements VariableInternal
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAccept the visitor and allow it to perform actions on this Node.voidclose()Mark the variable so that it is no longer in scope.booleaninthashCode()ident()Return the name of this variable.booleanbooleanReturns true if this variable is still in scope.toString()type()Return the type of this variable.Methods inherited from class ExpressionFactory.ExpressionBase
copy, copyMethods inherited from class AttributedObjectBase
attributes, get, setMethods inherited from interface AttributedObject
attributes, get, set
-
Field Details
-
type
-
ident
-
available
private boolean available
-
-
Constructor Details
-
VariableImpl
VariableImpl(ExpressionFactory ef, Type type, String ident)
-
-
Method Details
-
isAssignable
public boolean isAssignable()- Specified by:
isAssignablein interfaceExpressionInternal- Overrides:
isAssignablein classExpressionFactory.ExpressionBase
-
ident
-
isAvailable
public boolean isAvailable()Description copied from interface:VariableInternalReturns true if this variable is still in scope. Only variables still in scope may be referenced in expressions.- Specified by:
isAvailablein interfaceVariableInternal
-
close
public void close()Description copied from interface:VariableInternalMark the variable so that it is no longer in scope.- Specified by:
closein interfaceVariableInternal
-
hashCode
-
equals
-
toString
-
type
-
accept
-