org.jetbrains.jet.rt.signature
Interface JetSignatureVisitor

All Known Implementing Classes:
JetSignatureAdapter, JetSignatureExceptionsAdapter, JetSignatureWriter

public interface JetSignatureVisitor

See Also:
SignatureVisitor

Field Summary
static char EXTENDS
          Wildcard for an "extends" type argument.
static char INSTANCEOF
          Wildcard for a normal type argument.
static char SUPER
          Wildcard for a "super" type argument.
 
Method Summary
 JetSignatureVisitor visitArrayType(boolean nullable, JetSignatureVariance wildcard)
          Visits a signature corresponding to an array type.
 void visitBaseType(char descriptor, boolean nullable)
          Visits a signature corresponding to a primitive type.
 JetSignatureVisitor visitClassBound()
          Visits the class bound of the last visited formal type parameter.
 void visitClassType(String name, boolean nullable, boolean forceReal)
          Starts the visit of a signature corresponding to a class or interface type.
 void visitEnd()
          Ends the visit of a signature corresponding to a class or interface type.
 JetSignatureVisitor visitExceptionType()
          Visits the type of a method exception.
 JetSignatureVisitor visitFormalTypeParameter(String name, TypeInfoVariance variance, boolean reified)
          Visits a formal type parameter.
 void visitFormalTypeParameterEnd()
           
 void visitInnerClassType(String name, boolean nullable, boolean forceReal)
          Visits an inner class.
 JetSignatureVisitor visitInterface()
          Visits the type of an interface implemented by the class.
 JetSignatureVisitor visitInterfaceBound()
          Visits an interface bound of the last visited formal type parameter.
 JetSignatureVisitor visitParameterType()
          Visits the type of a method parameter.
 JetSignatureVisitor visitReturnType()
          Visits the return type of the method.
 JetSignatureVisitor visitSuperclass()
          Visits the type of the super class.
 void visitTypeArgument()
          Visits an unbounded type argument of the last visited class or inner class type.
 JetSignatureVisitor visitTypeArgument(JetSignatureVariance wildcard)
          Visits a type argument of the last visited class or inner class type.
 void visitTypeVariable(String name, boolean nullable)
          Visits a signature corresponding to a type variable.
 

Field Detail

EXTENDS

static final char EXTENDS
Wildcard for an "extends" type argument.

See Also:
Constant Field Values

SUPER

static final char SUPER
Wildcard for a "super" type argument.

See Also:
Constant Field Values

INSTANCEOF

static final char INSTANCEOF
Wildcard for a normal type argument.

See Also:
Constant Field Values
Method Detail

visitFormalTypeParameter

JetSignatureVisitor visitFormalTypeParameter(String name,
                                             TypeInfoVariance variance,
                                             boolean reified)
Visits a formal type parameter. TODO should not store reified flag in signature

Parameters:
name - the name of the formal parameter.

visitFormalTypeParameterEnd

void visitFormalTypeParameterEnd()

visitClassBound

JetSignatureVisitor visitClassBound()
Visits the class bound of the last visited formal type parameter.

Returns:
a non null visitor to visit the signature of the class bound.

visitInterfaceBound

JetSignatureVisitor visitInterfaceBound()
Visits an interface bound of the last visited formal type parameter.

Returns:
a non null visitor to visit the signature of the interface bound.

visitSuperclass

JetSignatureVisitor visitSuperclass()
Visits the type of the super class.

Returns:
a non null visitor to visit the signature of the super class type.

visitInterface

JetSignatureVisitor visitInterface()
Visits the type of an interface implemented by the class.

Returns:
a non null visitor to visit the signature of the interface type.

visitParameterType

JetSignatureVisitor visitParameterType()
Visits the type of a method parameter.

Returns:
a non null visitor to visit the signature of the parameter type.

visitReturnType

JetSignatureVisitor visitReturnType()
Visits the return type of the method.

Returns:
a non null visitor to visit the signature of the return type.

visitExceptionType

JetSignatureVisitor visitExceptionType()
Visits the type of a method exception.

Returns:
a non null visitor to visit the signature of the exception type.

visitBaseType

void visitBaseType(char descriptor,
                   boolean nullable)
Visits a signature corresponding to a primitive type.

Parameters:
descriptor - the descriptor of the primitive type, or 'V' for void.

visitTypeVariable

void visitTypeVariable(String name,
                       boolean nullable)
Visits a signature corresponding to a type variable.

Parameters:
name - the name of the type variable.

visitArrayType

JetSignatureVisitor visitArrayType(boolean nullable,
                                   JetSignatureVariance wildcard)
Visits a signature corresponding to an array type.

Returns:
a non null visitor to visit the signature of the array element type.

visitClassType

void visitClassType(String name,
                    boolean nullable,
                    boolean forceReal)
Starts the visit of a signature corresponding to a class or interface type.

Parameters:
name - the internal name of the class or interface.

visitInnerClassType

void visitInnerClassType(String name,
                         boolean nullable,
                         boolean forceReal)
Visits an inner class.

Parameters:
name - the full name of the inner class.

visitTypeArgument

void visitTypeArgument()
Visits an unbounded type argument of the last visited class or inner class type.


visitTypeArgument

JetSignatureVisitor visitTypeArgument(JetSignatureVariance wildcard)
Visits a type argument of the last visited class or inner class type.

Parameters:
wildcard - '+', '-' or '='.
Returns:
a non null visitor to visit the signature of the type argument.

visitEnd

void visitEnd()
Ends the visit of a signature corresponding to a class or interface type.



Copyright © 2013. All Rights Reserved.