Package | Description |
---|---|
org.eclipse.wst.jsdt.core.ast | |
org.eclipse.wst.jsdt.core.infer |
Modifier and Type | Method and Description |
---|---|
InferredType |
IReturnStatement.getInferredType() |
InferredType |
IObjectLiteral.getInferredType() |
InferredType |
IAssignment.getInferredType()
Get the inferred type of the assignment
|
InferredType |
IAbstractVariableDeclaration.getInferredType()
Get the inferred type of the var
|
InferredType |
IAbstractFunctionDeclaration.getInferredType()
Get the inferred return type for the function
|
Modifier and Type | Method and Description |
---|---|
void |
ASTVisitor.endVisit(InferredType inferredType) |
void |
IReturnStatement.setInferredType(InferredType type) |
void |
IObjectLiteral.setInferredType(InferredType type) |
void |
IAssignment.setInferredType(InferredType type)
Set the inferred type of the assignment
|
void |
IAbstractVariableDeclaration.setInferredType(InferredType type)
Set the inferred type of the var
|
void |
IAbstractFunctionDeclaration.setInferredType(InferredType type)
Set the inferred return type
|
boolean |
ASTVisitor.visit(InferredType inferredType) |
Modifier and Type | Field and Description |
---|---|
InferredType |
InferEngine.ArrayType
Deprecated.
|
InferredType |
InferEngine.BooleanType
Deprecated.
|
InferredType |
InferEngine.FunctionType
Deprecated.
|
InferredType |
InferEngine.GlobalType
Deprecated.
- no longer used
|
protected InferredType |
InferEngine.inferredGlobal |
InferredType |
InferredMember.inType
The type to which this member belongs
|
InferredType |
InferEngine.NumberType
Deprecated.
|
InferredType |
InferEngine.ObjectType
Deprecated.
|
InferredType |
InferredType.referenceClass |
InferredType |
InferEngine.StringType
Deprecated.
|
InferredType |
InferredType.superClass
The parent type of this type, or
null if this type does not have a parent type
NOTE: This field should not be accessed directly, use the appropriate getter and setter. |
InferredType |
InferredAttribute.type
The type of this attribute
|
InferredType |
InferEngine.VoidType
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected InferredType |
InferEngine.addType(char[] className) |
protected InferredType |
InferEngine.addType(char[] className,
boolean isDefinition)
Create a new inferred type with the given name
|
protected InferredType |
InferEngine.createAnonymousGlobalType(char[] varName)
Creates a global anonymous type.
|
protected InferredType |
InferEngine.createAnonymousType(char[] possibleTypeName,
InferredType currentType) |
protected InferredType |
InferEngine.createAnonymousType(IASTNode forNode,
InferredType parrentType)
Creates an anonymous type for a given node with an optional parent type.
|
protected InferredType |
InferEngine.createAnonymousTypeForMixin(IExpression mixInto,
InferredType parentType) |
InferredType |
InferEngine.findDefinedType(char[] className) |
protected InferredType |
InferEngine.getArrayType() |
protected InferredType |
InferEngine.getAttributeType(char[] attName,
IExpression receiver,
boolean defineRoot) |
protected InferredType |
InferEngine.getBooleanType() |
protected InferredType |
InferEngine.getFunctionType() |
protected InferredType |
InferEngine.getInferredGlobal(boolean define) |
protected InferredType |
InferEngine.getInferredType2(IExpression fieldReceiver)
Deprecated.
- here for compatibility
|
protected InferredType |
InferEngine.getNumberType() |
protected InferredType |
InferEngine.getObjectType() |
protected InferredType |
InferEngine.getReceiverType(IExpression receiver,
boolean defineRoot)
This method is intended to take a chain of field references and
determine the type that the last field should be or is defined on.
|
protected InferredType |
InferEngine.getStringType() |
InferredType |
InferredType.getSuperType() |
InferredType[] |
InferredType.getSynonyms() |
protected InferredType |
InferEngine.getTypeOf(IExpression expression) |
protected InferredType |
InferEngine.getVoidType() |
Modifier and Type | Method and Description |
---|---|
void |
InferredType.addSynonym(InferredType type) |
protected void |
InferEngine.convertAnonymousTypeToNamed(InferredType type,
char[] newTypeName)
Converts the given anonymous type to a named global type.
|
protected InferredType |
InferEngine.createAnonymousType(char[] possibleTypeName,
InferredType currentType) |
protected InferredType |
InferEngine.createAnonymousType(IASTNode forNode,
InferredType parrentType)
Creates an anonymous type for a given node with an optional parent type.
|
protected InferredType |
InferEngine.createAnonymousTypeForMixin(IExpression mixInto,
InferredType parentType) |
protected void |
InferEngine.handleConstructor(InferredType type,
IFunctionDeclaration methodDeclaration,
int start,
int end) |
protected void |
InferEngine.handleJSDocConstructor(InferredType type,
IFunctionDeclaration methodDeclaration,
int nameStart) |
void |
InferredType.mixin(InferredType mixin)
Mixes an
InferredType into this InferredType right now. |
void |
InferredType.mixin(InferredType mixin,
boolean isDeepCopy)
Mixes an
InferredType into this InferredType . |
protected void |
InferEngine.populateType(InferredType type,
IObjectLiteral objLit,
boolean isStatic) |
protected void |
InferEngine.renameType(InferredType type,
char[] newTypeName)
Renames the given type to the given name.
|
void |
InferredType.setSuperType(InferredType superType)
Sets the super type of this type unless the given super type is
itself then this is a no op
|
protected void |
InferEngine.setTypeOf(IExpression expression,
InferredType type)
Sets the inferred type of the given expression to the given type.
|
Constructor and Description |
---|
InferredAttribute(char[] name,
InferredType inferredType,
IASTNode definer) |
InferredAttribute(char[] name,
InferredType inType,
int start,
int end)
Creates an attribute with this name in the given inferred type.
|
InferredMethod(char[] name,
IFunctionDeclaration functionDeclaration,
InferredType inType) |
Copyright (c) IBM Corp. and others 2000, 2016. All Rights Reserved.