Groovy 2.2.1

org.codehaus.groovy.transform.stc
[Java] Class TypeCheckingContext

java.lang.Object
  org.codehaus.groovy.transform.stc.TypeCheckingContext

public class TypeCheckingContext
extends Object

Nested Class Summary
static class TypeCheckingContext.EnclosingClosure

 
Field Summary
protected Set alreadyVisitedMethods

protected Map closureSharedVariablesAssignmentTypes

protected Map controlStructureVariables

protected DelegationMetadata delegationMetadata

The type of the last encountered "it" implicit parameter

protected LinkedList enclosingBinaryExpressions

protected LinkedList enclosingClassNodes

protected LinkedList enclosingClosures

protected LinkedList enclosingMethodCalls

protected LinkedList enclosingMethods

protected LinkedList errorCollectors

protected Map ifElseForWhileAssignmentTracker

protected boolean isInStaticContext

protected ClassNode lastImplicitItType

protected Set methodsToBeVisited

protected Set reportedErrors

protected LinkedHashSet secondPassExpressions

protected SourceUnit source

protected Stack temporaryIfBranchTypeInformation

protected StaticTypeCheckingVisitor visitor

 
Constructor Summary
TypeCheckingContext(StaticTypeCheckingVisitor staticTypeCheckingVisitor)

 
Method Summary
BinaryExpression getEnclosingBinaryExpression()

List getEnclosingBinaryExpressionStack()

ClassNode getEnclosingClassNode()

List getEnclosingClassNodes()

TypeCheckingContext.EnclosingClosure getEnclosingClosure()

List getEnclosingClosureStack()

MethodNode getEnclosingMethod()

Expression getEnclosingMethodCall()

List getEnclosingMethodCalls()

List getEnclosingMethods()

ErrorCollector getErrorCollector()

List getErrorCollectors()

BinaryExpression popEnclosingBinaryExpression()

ClassNode popEnclosingClassNode()

TypeCheckingContext.EnclosingClosure popEnclosingClosure()

MethodNode popEnclosingMethod()

Expression popEnclosingMethodCall()

Pops a method call from the enclosing method call stack.

ErrorCollector popErrorCollector()

void popTemporaryTypeInfo()

void pushEnclosingBinaryExpression(BinaryExpression binaryExpression)

void pushEnclosingClassNode(ClassNode classNode)

void pushEnclosingClosureExpression(ClosureExpression closureExpression)

void pushEnclosingMethod(MethodNode methodNode)

void pushEnclosingMethodCall(Expression call)

void pushErrorCollector(ErrorCollector collector)

ErrorCollector pushErrorCollector()

void pushTemporaryTypeInfo()

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

alreadyVisitedMethods

protected Set alreadyVisitedMethods


closureSharedVariablesAssignmentTypes

protected final Map closureSharedVariablesAssignmentTypes


controlStructureVariables

protected Map controlStructureVariables


delegationMetadata

protected DelegationMetadata delegationMetadata
The type of the last encountered "it" implicit parameter


enclosingBinaryExpressions

protected final LinkedList enclosingBinaryExpressions


enclosingClassNodes

protected final LinkedList enclosingClassNodes


enclosingClosures

protected final LinkedList enclosingClosures


enclosingMethodCalls

protected final LinkedList enclosingMethodCalls


enclosingMethods

protected final LinkedList enclosingMethods


errorCollectors

protected final LinkedList errorCollectors


ifElseForWhileAssignmentTracker

protected Map ifElseForWhileAssignmentTracker


isInStaticContext

protected boolean isInStaticContext


lastImplicitItType

protected ClassNode lastImplicitItType


methodsToBeVisited

protected Set methodsToBeVisited


reportedErrors

protected final Set reportedErrors


secondPassExpressions

protected final LinkedHashSet secondPassExpressions


source

protected SourceUnit source


temporaryIfBranchTypeInformation

protected Stack temporaryIfBranchTypeInformation


visitor

protected final StaticTypeCheckingVisitor visitor


 
Constructor Detail

TypeCheckingContext

public TypeCheckingContext(StaticTypeCheckingVisitor staticTypeCheckingVisitor)


 
Method Detail

getEnclosingBinaryExpression

public BinaryExpression getEnclosingBinaryExpression()


getEnclosingBinaryExpressionStack

public List getEnclosingBinaryExpressionStack()


getEnclosingClassNode

public ClassNode getEnclosingClassNode()


getEnclosingClassNodes

public List getEnclosingClassNodes()


getEnclosingClosure

public TypeCheckingContext.EnclosingClosure getEnclosingClosure()


getEnclosingClosureStack

public List getEnclosingClosureStack()


getEnclosingMethod

public MethodNode getEnclosingMethod()


getEnclosingMethodCall

public Expression getEnclosingMethodCall()


getEnclosingMethodCalls

public List getEnclosingMethodCalls()


getEnclosingMethods

public List getEnclosingMethods()


getErrorCollector

public ErrorCollector getErrorCollector()


getErrorCollectors

public List getErrorCollectors()


popEnclosingBinaryExpression

public BinaryExpression popEnclosingBinaryExpression()


popEnclosingClassNode

public ClassNode popEnclosingClassNode()


popEnclosingClosure

public TypeCheckingContext.EnclosingClosure popEnclosingClosure()


popEnclosingMethod

public MethodNode popEnclosingMethod()


popEnclosingMethodCall

public Expression popEnclosingMethodCall()
Pops a method call from the enclosing method call stack.
Returns:
the popped call


popErrorCollector

public ErrorCollector popErrorCollector()


popTemporaryTypeInfo

public void popTemporaryTypeInfo()


pushEnclosingBinaryExpression

public void pushEnclosingBinaryExpression(BinaryExpression binaryExpression)


pushEnclosingClassNode

public void pushEnclosingClassNode(ClassNode classNode)


pushEnclosingClosureExpression

public void pushEnclosingClosureExpression(ClosureExpression closureExpression)


pushEnclosingMethod

public void pushEnclosingMethod(MethodNode methodNode)


pushEnclosingMethodCall

public void pushEnclosingMethodCall(Expression call)


pushErrorCollector

public void pushErrorCollector(ErrorCollector collector)


pushErrorCollector

public ErrorCollector pushErrorCollector()


pushTemporaryTypeInfo

public void pushTemporaryTypeInfo()


 

Copyright © 2003-2013 The Codehaus. All rights reserved.