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 TypeMethodDescriptionvoid
Accept the visitor and allow it to perform actions on this Node.void
close()
Mark the variable so that it is no longer in scope.boolean
int
hashCode()
ident()
Return the name of this variable.boolean
boolean
Returns true if this variable is still in scope.toString()
type()
Return the type of this variable.Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.ExpressionFactory.ExpressionBase
copy, copy
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.NodeBase
getAncestor, id, parent, parent, postCopy, preCopy
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.AttributedObjectBase
attributes, get, set
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.glassfish.pfl.dynamic.codegen.impl.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:
isAssignable
in interfaceExpressionInternal
- Overrides:
isAssignable
in classExpressionFactory.ExpressionBase
-
ident
Description copied from interface:Variable
Return the name of this variable. -
isAvailable
public boolean isAvailable()Description copied from interface:VariableInternal
Returns true if this variable is still in scope. Only variables still in scope may be referenced in expressions.- Specified by:
isAvailable
in interfaceVariableInternal
-
close
public void close()Description copied from interface:VariableInternal
Mark the variable so that it is no longer in scope.- Specified by:
close
in interfaceVariableInternal
-
hashCode
public int hashCode() -
equals
-
toString
-
type
Description copied from interface:Variable
Return the type of this variable.- Specified by:
type
in interfaceExpressionInternal
- Specified by:
type
in interfaceVariable
- Returns:
- The variable type.
-
accept
Description copied from interface:Node
Accept the visitor and allow it to perform actions on this Node.- Specified by:
accept
in interfaceNode
- Specified by:
accept
in classExpressionFactory.ExpressionBase
-