Custom type checking extensions may extend this method in order to benefit from a lot of support methods.
The methods found in this class are made directly available in type checking scripts
through the org. class.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final TypeCheckingContext | |
| protected boolean | |
| private final Set | |
| protected boolean | |
| private static final Logger | |
| private final LinkedList |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public void | |
| public void | |
| public boolean | |
| public boolean | |
| public ArgumentListExpression | |
| public AbstractTypeCheckingExtension. | |
| public BinaryExpression | |
| public List | |
| public ClassNode | |
| public List | |
| public TypeCheckingContext. | |
| public List | |
| public MethodNode | |
| public Expression | |
| public List | |
| public List | |
| public Set | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public boolean | |
| public void | |
| public MethodNode | Returns: a virtual method node with the same name as the expected callthe method call which is a dynamic method call call)Used to instruct the type checker that the call is a dynamic method call. |
| public MethodNode | Returns: a virtual method node with the same name as the expected callthe method call which is a dynamic method call call, ClassNode the expected return type of the dynamic call returnType)Used to instruct the type checker that the call is a dynamic method call. |
| public void | makeDynamic(PropertyExpression
the property or attribute expression pexp)Instructs the type checker that a property access is dynamic, returning an instance of an Object. |
| public void | makeDynamic(PropertyExpression
the property or attribute expression pexp, ClassNode the type of the property returnType)Instructs the type checker that a property access is dynamic. |
| public void | makeDynamic(VariableExpression
the dynamic variable vexp)Instructs the type checker that an unresolved variable is a dynamic variable of type Object. |
| public void | makeDynamic(VariableExpression
the dynamic variable vexp, ClassNode the type of the dynamic variable
Calling this method automatically sets the handled flag to true. returnType)Instructs the type checker that an unresolved variable is a dynamic variable. |
| private static boolean | |
| public MethodNode | |
| public MethodNode | |
| public MethodNode | |
| public AbstractTypeCheckingExtension. | |
| public AbstractTypeCheckingExtension. | |
| public BinaryExpression | |
| public ClassNode | |
| public TypeCheckingContext. | |
| public MethodNode | |
| public Expression | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| protected Object | |
| public AbstractTypeCheckingExtension. | |
| public AbstractTypeCheckingExtension. | |
| public void | |
| public List | |
| public <R> R |
| context | back to summary |
|---|---|
| protected final TypeCheckingContext context | |
| debug | back to summary |
|---|---|
| protected boolean debug | |
| generatedMethods | back to summary |
|---|---|
| private final Set<MethodNode> generatedMethods | |
| handled | back to summary |
|---|---|
| protected boolean handled | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| scopeData | back to summary |
|---|---|
| private final LinkedList<AbstractTypeCheckingExtension. | |
| AbstractTypeCheckingExtension | back to summary |
|---|---|
| public AbstractTypeCheckingExtension(final StaticTypeCheckingVisitor typeCheckingVisitor) | |
| argTypeMatches | back to summary |
|---|---|
| public boolean argTypeMatches(ClassNode[] argTypes, int index, Class<T> clazz) | |
| argTypeMatches | back to summary |
|---|---|
| public boolean argTypeMatches(MethodCall call, int index, Class<T> clazz) | |
| argTypesMatches | back to summary |
|---|---|
| public boolean argTypesMatches(ClassNode[] argTypes, Class<T>... classes) | |
| argTypesMatches | back to summary |
|---|---|
| public boolean argTypesMatches(MethodCall call, Class<T>... classes) | |
| delegatesTo | back to summary |
|---|---|
| public void delegatesTo(ClassNode type) | |
| delegatesTo | back to summary |
|---|---|
| public void delegatesTo(ClassNode type, int strategy) | |
| delegatesTo | back to summary |
|---|---|
| public void delegatesTo(ClassNode type, int strategy, DelegationMetadata parent) | |
| firstArgTypesMatches | back to summary |
|---|---|
| public boolean firstArgTypesMatches(ClassNode[] argTypes, Class<T>... classes) | |
| firstArgTypesMatches | back to summary |
|---|---|
| public boolean firstArgTypesMatches(MethodCall call, Class<T>... classes) | |
| getArguments | back to summary |
|---|---|
| public ArgumentListExpression getArguments(MethodCall call) | |
| getCurrentScope | back to summary |
|---|---|
| public AbstractTypeCheckingExtension. | |
| getEnclosingBinaryExpression | back to summary |
|---|---|
| public BinaryExpression getEnclosingBinaryExpression() | |
| getEnclosingBinaryExpressionStack | back to summary |
|---|---|
| public List | |
| getEnclosingClassNode | back to summary |
|---|---|
| public ClassNode getEnclosingClassNode() | |
| getEnclosingClassNodes | back to summary |
|---|---|
| public List | |
| getEnclosingClosure | back to summary |
|---|---|
| public TypeCheckingContext. | |
| getEnclosingClosureStack | back to summary |
|---|---|
| public List | |
| getEnclosingMethod | back to summary |
|---|---|
| public MethodNode getEnclosingMethod() | |
| getEnclosingMethodCall | back to summary |
|---|---|
| public Expression getEnclosingMethodCall() | |
| getEnclosingMethodCalls | back to summary |
|---|---|
| public List | |
| getEnclosingMethods | back to summary |
|---|---|
| public List | |
| getGeneratedMethods | back to summary |
|---|---|
| public Set | |
| isAnnotatedBy | back to summary |
|---|---|
| public boolean isAnnotatedBy(ASTNode node, Class<T> annotation) | |
| isAnnotatedBy | back to summary |
|---|---|
| public boolean isAnnotatedBy(ASTNode node, ClassNode annotation) | |
| isDynamic | back to summary |
|---|---|
| public boolean isDynamic(VariableExpression var) | |
| isExtensionMethod | back to summary |
|---|---|
| public boolean isExtensionMethod(MethodNode node) | |
| isGenerated | back to summary |
|---|---|
| public boolean isGenerated(MethodNode node) | |
| isMethodCall | back to summary |
|---|---|
| public boolean isMethodCall(Object o) | |
| log | back to summary |
|---|---|
| public void log(String message) | |
| makeDynamic | back to summary |
|---|---|
| public MethodNode makeDynamic(MethodCall call) Used to instruct the type checker that the call is a dynamic method call. Calling this method automatically sets the handled flag to true. The expected return type of the dynamic method call is Object.
| |
| makeDynamic | back to summary |
|---|---|
| public MethodNode makeDynamic(MethodCall call, ClassNode returnType) Used to instruct the type checker that the call is a dynamic method call. Calling this method automatically sets the handled flag to true.
| |
| makeDynamic | back to summary |
|---|---|
| public void makeDynamic(PropertyExpression pexp) Instructs the type checker that a property access is dynamic, returning an instance of an Object. Calling this method automatically sets the handled flag to true.
| |
| makeDynamic | back to summary |
|---|---|
| public void makeDynamic(PropertyExpression pexp, ClassNode returnType) Instructs the type checker that a property access is dynamic. Calling this method automatically sets the handled flag to true.
| |
| makeDynamic | back to summary |
|---|---|
| public void makeDynamic(VariableExpression vexp) Instructs the type checker that an unresolved variable is a dynamic variable of type Object. Calling this method automatically sets the handled flag to true.
| |
| makeDynamic | back to summary |
|---|---|
| public void makeDynamic(VariableExpression vexp, ClassNode returnType) Instructs the type checker that an unresolved variable is a dynamic variable.
| |
| matchWithOrWithourBoxing | back to summary |
|---|---|
| private static boolean matchWithOrWithourBoxing(final ClassNode argType, final Class<T> aClass) | |
| newMethod | back to summary |
|---|---|
| public MethodNode newMethod(final String name, final Class<T> returnType) | |
| newMethod | back to summary |
|---|---|
| public MethodNode newMethod(final String name, final ClassNode returnType) | |
| newMethod | back to summary |
|---|---|
| public MethodNode newMethod(final String name, final Callable<ClassNode> returnType) | |
| newScope | back to summary |
|---|---|
| public AbstractTypeCheckingExtension. | |
| newScope | back to summary |
|---|---|
| public AbstractTypeCheckingExtension. | |
| popEnclosingBinaryExpression | back to summary |
|---|---|
| public BinaryExpression popEnclosingBinaryExpression() | |
| popEnclosingClassNode | back to summary |
|---|---|
| public ClassNode popEnclosingClassNode() | |
| popEnclosingClosure | back to summary |
|---|---|
| public TypeCheckingContext. | |
| popEnclosingMethod | back to summary |
|---|---|
| public MethodNode popEnclosingMethod() | |
| popEnclosingMethodCall | back to summary |
|---|---|
| public Expression popEnclosingMethodCall() | |
| popTemporaryTypeInfo | back to summary |
|---|---|
| public void popTemporaryTypeInfo() | |
| pushEnclosingBinaryExpression | back to summary |
|---|---|
| public void pushEnclosingBinaryExpression(final BinaryExpression binaryExpression) | |
| pushEnclosingClassNode | back to summary |
|---|---|
| public void pushEnclosingClassNode(final ClassNode classNode) | |
| pushEnclosingClosureExpression | back to summary |
|---|---|
| public void pushEnclosingClosureExpression(final ClosureExpression closureExpression) | |
| pushEnclosingMethod | back to summary |
|---|---|
| public void pushEnclosingMethod(final MethodNode methodNode) | |
| pushEnclosingMethodCall | back to summary |
|---|---|
| public void pushEnclosingMethodCall(final Expression call) | |
| pushTemporaryTypeInfo | back to summary |
|---|---|
| public void pushTemporaryTypeInfo() | |
| safeCall | back to summary |
|---|---|
| protected Object safeCall(Closure<V> closure, Object... args) | |
| scopeExit | back to summary |
|---|---|
| public AbstractTypeCheckingExtension. | |
| scopeExit | back to summary |
|---|---|
| public AbstractTypeCheckingExtension. | |
| setHandled | back to summary |
|---|---|
| public void setHandled(final boolean handled) | |
| unique | back to summary |
|---|---|
| public List | |
| withTypeChecker | back to summary |
|---|---|
public <R> R withTypeChecker(Closure<R> code)
| |
| Modifier and Type | Field and Description |
|---|---|
| private final AbstractTypeCheckingExtension. | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public AbstractTypeCheckingExtension. |
| parent | back to summary |
|---|---|
| private final AbstractTypeCheckingExtension. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TypeCheckingScope | back to summary |
|---|---|
| private TypeCheckingScope(final AbstractTypeCheckingExtension. | |
| getParent | back to summary |
|---|---|
| public AbstractTypeCheckingExtension. | |