public class TypeVariableDefinition extends Expression implements ITypeVariableDefinition, ITypeVariableDefinitionExpression
_type_tokens, UNDEF_FILE, UNDEF_FUNCTION, UNDEF_MODULEEMPTY_ARRAY| Constructor and Description |
|---|
TypeVariableDefinition(IType enclosingType,
boolean forFunction) |
TypeVariableDefinition(IType enclosingType,
IGenericTypeVariable typeVar) |
TypeVariableDefinition(IType enclosingType,
IGenericTypeVariable typeVar,
TypeVariableDefinitionImpl typeVarDef,
TypeVariableType typeVarType) |
| Modifier and Type | Method and Description |
|---|---|
ITypeVariableDefinition |
clone() |
boolean |
declares(String identifierName) |
boolean |
equals(Object o) |
Object |
evaluate() |
IType |
getBoundingType() |
String[] |
getDeclarations() |
IType |
getEnclosingType() |
String |
getName() |
int |
getNameOffset(String identifierName) |
TypeVariableType |
getType()
Returns this Expression's IType.
|
TypeVariableType |
getTypeImpl() |
GenericTypeVariable |
getTypeVar() |
ITypeVariableDefinition |
getTypeVarDef() |
static IGenericTypeVariable[] |
getTypeVars(List<ITypeVariableDefinitionExpression> typeVarDefs) |
int |
hashCode() |
void |
setBoundingType(IType type) |
void |
setEnclosingType(IType enclosingType) |
void |
setName(String strName) |
void |
setNameOffset(int iOffset,
String identifierName) |
void |
setType(IType type)
Sets this Expression's IType.
|
void |
setTypeVarDef(TypeVariableDefinitionImpl typeVarDef) |
String |
toString()
Subclasses should return a String representing the parsed expression.
|
evaluate, getContextType, getReturnType, isNullSafe, isUncheckedaddExceptionsFrom, addParseException, addParseException, addParseException, addParseExceptions, addParseIssues, addParseWarning, addParseWarning, addParseWarnings, addToken, adjustColumn, adjustLineNum, assignTokens, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, compactParseTree, findAncestorParsedElementByType, findDeclaringStatement, findLineNumberOfDeclaration, findRootParsedElement, getAnnotations, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getEnclosingFeatureInfo, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getQualifyingEnclosingTypeInfo, getTokens, hasImmediateParseIssue, hasImmediateParseWarning, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, initEmptyParseTree, initLocation, isCompileTimeConstant, isSuppressed, isSuppressed, isSynthetic, makeDoubleValue, makeFloatValue, makeInteger, makeLong, removeParseException, removeParseWarning, removeParseWarningRecursively, setGosuProgram, setLineNum, setLocation, setParent, setSynthetic, shouldClearParseInfofinalize, getClass, notify, notifyAll, wait, wait, waitaddExceptionsFrom, addParseException, addParseException, addParseWarning, addParseWarning, clearParseExceptions, clearParseTreeInformation, clearParseWarnings, findAncestorParsedElementByType, findDeclaringStatement, findRootParsedElement, getColumn, getContainedParsedElementsByType, getContainedParsedElementsByTypes, getContainedParsedElementsByTypesWithIgnoreSet, getFunctionName, getGosuClass, getGosuProgram, getImmediateParseIssue, getImmediateParseIssues, getLineNum, getLocation, getModule, getParent, getParseExceptions, getParseIssues, getParseWarnings, getReturnType, getTokens, hasImmediateParseIssue, hasImmediateParseWarnings, hasParseException, hasParseExceptions, hasParseIssue, hasParseIssues, hasParseWarning, hasParseWarnings, isCompileTimeConstant, isSuppressed, isSynthetic, setLocation, setParentpublic TypeVariableDefinition(IType enclosingType, boolean forFunction)
public TypeVariableDefinition(IType enclosingType, IGenericTypeVariable typeVar)
public TypeVariableDefinition(IType enclosingType, IGenericTypeVariable typeVar, TypeVariableDefinitionImpl typeVarDef, TypeVariableType typeVarType)
public TypeVariableType getType()
ExpressiongetType in interface ITypeVariableDefinitiongetType in interface IHasTypegetType in class Expressionpublic TypeVariableType getTypeImpl()
getTypeImpl in class Expressionpublic void setType(IType type)
ExpressionsetType in class Expressionpublic IType getEnclosingType()
getEnclosingType in interface ITypeVariableDefinitionpublic void setEnclosingType(IType enclosingType)
setEnclosingType in interface ITypeVariableDefinitionpublic String getName()
getName in interface ITypeVariableDefinitionpublic void setName(String strName)
public GenericTypeVariable getTypeVar()
getTypeVar in interface ITypeVariableDefinitionpublic Object evaluate()
evaluate in interface IExpressionevaluate in class Expressionpublic String toString()
ExpressiontoString in class Expressionpublic static IGenericTypeVariable[] getTypeVars(List<ITypeVariableDefinitionExpression> typeVarDefs)
public int getNameOffset(String identifierName)
getNameOffset in interface IParsedElementWithAtLeastOneDeclarationpublic void setNameOffset(int iOffset,
String identifierName)
setNameOffset in interface IParsedElementWithAtLeastOneDeclarationpublic boolean declares(String identifierName)
declares in interface IParsedElementWithAtLeastOneDeclarationpublic String[] getDeclarations()
getDeclarations in interface IParsedElementWithAtLeastOneDeclarationpublic ITypeVariableDefinition clone()
clone in interface ITypeVariableDefinitionclone in class Objectpublic IType getBoundingType()
getBoundingType in interface ITypeVariableDefinitionpublic void setBoundingType(IType type)
public ITypeVariableDefinition getTypeVarDef()
getTypeVarDef in interface ITypeVariableDefinitionExpressionpublic void setTypeVarDef(TypeVariableDefinitionImpl typeVarDef)
Copyright © 2015. All rights reserved.