org.aspectj.ajdt.internal.compiler.ast
Class AstUtil
java.lang.Object
org.aspectj.ajdt.internal.compiler.ast.AstUtil
public class AstUtil
- extends java.lang.Object
Field Summary |
static char[] |
PREFIX
|
Method Summary |
static void |
addMethodBinding(SourceTypeBinding sourceType,
MethodBinding method)
|
static void |
addMethodDeclaration(TypeDeclaration typeDec,
AbstractMethodDeclaration dec)
|
static Argument[] |
copyArguments(Argument[] inArgs)
|
static void |
generateParameterLoads(TypeBinding[] parameters,
CodeStream codeStream)
|
static void |
generateParameterLoads(TypeBinding[] parameters,
CodeStream codeStream,
int offset)
|
static void |
generateReturn(TypeBinding returnType,
CodeStream codeStream)
|
static java.util.List |
getAjSyntheticAttribute()
|
static CompilationUnitScope |
getCompilationUnitScope(Scope scope)
|
static char[][] |
getCompoundName(java.lang.String string)
|
static Argument[] |
insert(Argument first,
Argument[] rest)
|
static Expression[] |
insert(Expression first,
Expression[] rest)
|
static TypeBinding[] |
insert(TypeBinding first,
TypeBinding[] rest)
|
static char[] |
makeAjcMangledName(char[] kind,
char[] p,
char[] name)
|
static char[] |
makeAjcMangledName(char[] kind,
ReferenceBinding type,
char[] name)
|
static Argument |
makeFinalArgument(char[] name,
TypeBinding typeBinding)
|
static SingleNameReference |
makeLocalVariableReference(LocalVariableBinding binding)
|
static long |
makeLongPos(int start,
int end)
|
static char[] |
makeMangledName(ReferenceBinding type)
|
static MethodDeclaration |
makeMethodDeclaration(MethodBinding binding)
|
static NameReference |
makeNameReference(TypeBinding binding)
|
static int |
makePackageVisible(int modifiers)
|
static int |
makePublic(int modifiers)
|
static SingleNameReference |
makeResolvedLocalVariableReference(LocalVariableBinding binding)
|
static ReturnStatement |
makeReturnStatement(Expression expr)
|
static TypeReference |
makeTypeReference(TypeBinding binding)
|
static Statement[] |
remove(int i,
Statement[] statements)
|
static void |
replaceMethodBinding(MessageSend send,
MethodBinding newBinding)
|
static void |
setStatements(MethodDeclaration ret,
java.util.List statements)
|
static int |
slotsNeeded(TypeBinding type)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PREFIX
public static final char[] PREFIX
addMethodBinding
public static void addMethodBinding(SourceTypeBinding sourceType,
MethodBinding method)
addMethodDeclaration
public static void addMethodDeclaration(TypeDeclaration typeDec,
AbstractMethodDeclaration dec)
makeFinalArgument
public static Argument makeFinalArgument(char[] name,
TypeBinding typeBinding)
makeTypeReference
public static TypeReference makeTypeReference(TypeBinding binding)
makeNameReference
public static NameReference makeNameReference(TypeBinding binding)
makeReturnStatement
public static ReturnStatement makeReturnStatement(Expression expr)
makeMethodDeclaration
public static MethodDeclaration makeMethodDeclaration(MethodBinding binding)
setStatements
public static void setStatements(MethodDeclaration ret,
java.util.List statements)
makeLocalVariableReference
public static SingleNameReference makeLocalVariableReference(LocalVariableBinding binding)
makeResolvedLocalVariableReference
public static SingleNameReference makeResolvedLocalVariableReference(LocalVariableBinding binding)
makePublic
public static int makePublic(int modifiers)
makePackageVisible
public static int makePackageVisible(int modifiers)
getCompilationUnitScope
public static CompilationUnitScope getCompilationUnitScope(Scope scope)
generateParameterLoads
public static void generateParameterLoads(TypeBinding[] parameters,
CodeStream codeStream)
generateParameterLoads
public static void generateParameterLoads(TypeBinding[] parameters,
CodeStream codeStream,
int offset)
generateReturn
public static void generateReturn(TypeBinding returnType,
CodeStream codeStream)
makeMangledName
public static char[] makeMangledName(ReferenceBinding type)
makeAjcMangledName
public static char[] makeAjcMangledName(char[] kind,
ReferenceBinding type,
char[] name)
makeAjcMangledName
public static char[] makeAjcMangledName(char[] kind,
char[] p,
char[] name)
getAjSyntheticAttribute
public static java.util.List getAjSyntheticAttribute()
makeLongPos
public static long makeLongPos(int start,
int end)
getCompoundName
public static char[][] getCompoundName(java.lang.String string)
insert
public static TypeBinding[] insert(TypeBinding first,
TypeBinding[] rest)
insert
public static Argument[] insert(Argument first,
Argument[] rest)
insert
public static Expression[] insert(Expression first,
Expression[] rest)
copyArguments
public static Argument[] copyArguments(Argument[] inArgs)
remove
public static Statement[] remove(int i,
Statement[] statements)
slotsNeeded
public static int slotsNeeded(TypeBinding type)
replaceMethodBinding
public static void replaceMethodBinding(MessageSend send,
MethodBinding newBinding)