| Modifier and Type | Method and Description |
|---|---|
Type |
RemoteClass.Method.getType()
Return the type of this method.
|
| Modifier and Type | Method and Description |
|---|---|
Type |
CompoundType.Method.getType()
Return the type of this method.
|
| Modifier and Type | Method and Description |
|---|---|
static ArrayType |
ArrayType.forArray(Type theType,
ContextStack stack)
Create an ArrayType object for the given type.
|
static PrimitiveType |
PrimitiveType.forPrimitive(Type type,
ContextStack stack)
Create a PrimitiveType object for the given type.
|
protected static Type |
Type.getType(Type key,
ContextStack stack)
Get a type out of the table.
|
protected static Type |
CompoundType.makeType(Type theType,
ClassDefinition classDef,
ContextStack stack) |
protected static void |
Type.putType(Type key,
Type value,
ContextStack stack)
Put a type into the table.
|
protected static void |
Type.removeType(Type key,
ContextStack stack)
Remove a type from the table.
|
| Constructor and Description |
|---|
ArrayData(Type type,
int nargs) |
| Modifier and Type | Method and Description |
|---|---|
Type |
BinaryConstantPool.getType(int n)
get a type from a type signature
|
| Constructor and Description |
|---|
BinaryMember(ClassDefinition clazz,
int modifiers,
Type type,
Identifier name,
BinaryAttribute atts)
Constructor
|
| Modifier and Type | Class and Description |
|---|---|
class |
ArrayType
This class represents an Java array type.
|
class |
ClassType
This class represents an Java class type.
|
class |
MethodType
This class represents an Java method type.
|
| Modifier and Type | Field and Description |
|---|---|
static Type[] |
Type.noArgs |
static Type |
Type.tBoolean |
static Type |
Type.tByte |
static Type |
Type.tChar |
static Type |
Type.tClassDesc |
static Type |
Type.tCloneable |
static Type |
Type.tDouble |
static Type |
Type.tError |
static Type |
Type.tFloat |
static Type |
Type.tInt |
static Type |
Type.tLong |
static Type |
Type.tNull |
static Type |
Type.tObject |
static Type |
Type.tPackage |
static Type |
Type.tSerializable |
static Type |
Type.tShort |
static Type |
Type.tString |
static Type |
Type.tVoid |
protected Type |
MemberDefinition.type |
| Modifier and Type | Method and Description |
|---|---|
Type[] |
Type.getArgumentTypes()
Return the argument types.
|
Type[] |
MethodType.getArgumentTypes() |
Type |
Type.getElementType()
Return the element type of an array type.
|
Type |
ArrayType.getElementType() |
Type |
Type.getReturnType()
Return the return type.
|
Type |
MethodType.getReturnType() |
Type |
MemberDefinition.getType()
Get the field's type
|
Type |
ClassDefinition.getType()
Get the class' type
|
Type |
ClassDeclaration.getType()
Get the type of the class
|
protected Type |
Parser.parseArrayBrackets(Type t)
Parse the tail of a type expression, which might be array brackets.
|
protected Type |
Parser.parseType()
Parse a type expression, this results in a Type.
|
Type |
Environment.resolveNames(ClassDefinition c,
Type t,
boolean synth)
Resolve the names within a type, returning the adjusted type.
|
static Type |
Type.tArray(Type elem)
Create an array type.
|
static Type |
Type.tClass(Identifier className)
Create a class type.
|
static Type |
Type.tMethod(Type ret)
Create a method type with no arguments.
|
static Type |
Type.tMethod(Type returnType,
Type[] argTypes)
Create a method type with arguments.
|
static Type |
Type.tType(String sig)
Create a Type from an Java type signature.
|
| Modifier and Type | Method and Description |
|---|---|
Vset |
ClassDefinition.checkLocalClass(Environment env,
Context ctx,
Vset vset,
ClassDefinition sup,
Expression[] args,
Type[] argTypes) |
boolean |
Environment.classExists(Type t) |
void |
ParserActions.defineField(long where,
ClassDefinition c,
String doc,
int mod,
Type t,
IdentifierToken nm,
IdentifierToken[] args,
IdentifierToken[] exp,
Node val)
Define a field
|
void |
Parser.defineField(long where,
ClassDefinition c,
String doc,
int mod,
Type t,
IdentifierToken nm,
IdentifierToken[] args,
IdentifierToken[] exp,
Node val)
Deprecated.
|
protected void |
Parser.defineField(long where,
String doc,
int mod,
Type t,
Identifier nm,
Identifier[] args,
Identifier[] exp,
Node val)
Deprecated.
Use the version with the IdentifierToken arguments.
|
int |
ClassDefinition.diagnoseMismatch(Environment env,
Identifier nm,
Type[] argTypes,
int start,
Type[] margTypeResult)
Given the fact that this class has no method "nm" matching "argTypes",
find out if the mismatch can be blamed on a particular actual argument
which disagrees with all of the overloadings.
|
int |
ClassDefinition.diagnoseMismatch(Environment env,
Identifier nm,
Type[] argTypes,
int start,
Type[] margTypeResult)
Given the fact that this class has no method "nm" matching "argTypes",
find out if the mismatch can be blamed on a particular actual argument
which disagrees with all of the overloadings.
|
boolean |
Type.equalArguments(Type t)
Check if the type arguments are the same.
|
boolean |
MethodType.equalArguments(Type t) |
boolean |
Environment.explicitCast(Type from,
Type to)
Return true if an explicit cast from this type to
the given type is allowed.
|
MemberDefinition |
ClassDefinition.findMethod(Environment env,
Identifier nm,
Type t)
Find a method, ie: exact match in this class or any of the super
classes.
|
ClassDeclaration |
Environment.getClassDeclaration(Type t)
Return a class declaration given a type.
|
ClassDefinition |
Environment.getClassDefinition(Type t)
Return a class definition given a type.
|
boolean |
Environment.implicitCast(Type from,
Type to)
Return true if an implicit cast from this type to
the given type is allowed.
|
boolean |
Environment.isApplicable(MemberDefinition m,
Type[] args)
Returns true if the given method is applicable to the given arguments
|
boolean |
Environment.isMoreSpecific(Type from,
Type to)
Returns true if "from" is a more specific type than "to"
|
MemberDefinition |
MethodSet.lookupSig(Identifier name,
Type type)
If the MethodSet contains a method with the same signature
then lookup() returns it.
|
MemberDefinition |
Environment.makeMemberDefinition(Environment origEnv,
long where,
ClassDefinition clazz,
String doc,
int modifiers,
Type type,
Identifier name,
IdentifierToken[] argNames,
IdentifierToken[] expIds,
Object value)
Create a new field.
|
MemberDefinition |
ClassDefinition.matchAnonConstructor(Environment env,
Identifier accessPackage,
Type[] argumentTypes)
A version of matchMethod to be used only for constructors
when we cannot pass in a sourceClass argument.
|
MemberDefinition |
ClassDefinition.matchMethod(Environment env,
ClassDefinition accessor,
Identifier methodName,
Type[] argumentTypes)
Lookup a method.
|
protected Type |
Parser.parseArrayBrackets(Type t)
Parse the tail of a type expression, which might be array brackets.
|
boolean |
ClassDefinition.protectedAccess(Environment env,
MemberDefinition f,
Type accessorType)
We know the field is marked protected (and not public) and that
the field is visible (as per canAccess).
|
boolean |
Environment.resolve(long where,
ClassDefinition c,
Type t)
Resolve a type.
|
Type |
Environment.resolveNames(ClassDefinition c,
Type t,
boolean synth)
Resolve the names within a type, returning the adjusted type.
|
static Type |
Type.tArray(Type elem)
Create an array type.
|
static Type |
Type.tMethod(Type ret)
Create a method type with no arguments.
|
static Type |
Type.tMethod(Type returnType,
Type[] argTypes)
Create a method type with arguments.
|
static Type |
Type.tMethod(Type returnType,
Type[] argTypes)
Create a method type with arguments.
|
| Constructor and Description |
|---|
MemberDefinition(long where,
ClassDefinition clazz,
int modifiers,
Type type,
Identifier name,
IdentifierToken[] expIds,
Node value)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Vset |
SourceClass.checkLocalClass(Environment env,
Context ctx,
Vset vset,
ClassDefinition sup,
Expression[] args,
Type[] argTypes)
Deprecated.
During the type-checking of an outer method body or initializer,
this routine is called to check a local class body
in the proper context.
|
void |
BatchParser.defineField(long where,
ClassDefinition c,
String doc,
int mod,
Type t,
IdentifierToken name,
IdentifierToken[] args,
IdentifierToken[] exp,
Node val)
Deprecated.
Define a method
|
ClassDeclaration |
BatchEnvironment.getClassDeclaration(Type t) |
MemberDefinition |
BatchEnvironment.makeMemberDefinition(Environment origEnv,
long where,
ClassDefinition clazz,
String doc,
int modifiers,
Type type,
Identifier name,
IdentifierToken[] argNames,
IdentifierToken[] expIds,
Object value)
Create a new field.
|
| Constructor and Description |
|---|
SourceMember(long where,
ClassDefinition clazz,
String doc,
int modifiers,
Type type,
Identifier name,
Vector<MemberDefinition> argNames,
IdentifierToken[] exp,
Node value)
Deprecated.
Constructor
|
| Modifier and Type | Field and Description |
|---|---|
protected Type |
AssignOpExpression.itype |
| Modifier and Type | Method and Description |
|---|---|
Type |
Expression.getType() |
| Modifier and Type | Method and Description |
|---|---|
Vset |
Expression.checkInitializer(Environment env,
Context ctx,
Vset vset,
Type t,
Hashtable<Object,Object> exp) |
Vset |
ArrayExpression.checkInitializer(Environment env,
Context ctx,
Vset vset,
Type t,
Hashtable<Object,Object> exp) |
Expression |
Node.convert(Environment env,
Context ctx,
Type t,
Expression e)
Implicit conversions
|
boolean |
IntegerExpression.fitsType(Environment env,
Context ctx,
Type t)
See if this number fits in the given type.
|
boolean |
Expression.fitsType(Environment env,
Context ctx,
Type t)
See if this expression fits in the given type.
|
boolean |
Expression.fitsType(Environment env,
Type t)
Deprecated.
(for backward compatibility)
|
| Constructor and Description |
|---|
ConvertExpression(long where,
Type type,
Expression right)
Constructor
|
LocalMember(long where,
ClassDefinition clazz,
int modifiers,
Type type,
Identifier name)
Constructor
|
TypeExpression(long where,
Type type)
Constructor
|
Copyright © 2017–2021 Eclipse Foundation. All rights reserved.