Class AstUtil
java.lang.Object
org.aspectj.ajdt.internal.compiler.ast.AstUtil
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic 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 List
static CompilationUnitScope
getCompilationUnitScope(Scope scope)
static char[][]
getCompoundName(String string)
static Argument[]
static Expression[]
insert(Expression first, Expression[] rest)
static TypeParameter[]
insert(TypeParameter first, TypeParameter[] rest)
static TypeBinding[]
insert(TypeBinding first, TypeBinding[] rest)
static TypeVariableBinding[]
insert(TypeVariableBinding[] first, TypeVariableBinding[] rest)
static TypeVariableBinding[]
insert(TypeVariableBinding first, TypeVariableBinding[] 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
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
static ReturnStatement
makeReturnStatement(Expression expr)
static TypeReference
makeTypeReference(TypeBinding binding)
static Statement[]
static void
replaceMethodBinding(MessageSend send, MethodBinding newBinding)
static void
setStatements(MethodDeclaration ret, List statements)
static int
slotsNeeded(TypeBinding type)
-
Field Details
-
PREFIX
public static final char[] PREFIX
-
-
Method Details
-
addMethodBinding
-
addMethodDeclaration
-
makeFinalArgument
-
makeTypeReference
-
makeNameReference
-
makeReturnStatement
-
makeMethodDeclaration
-
setStatements
-
makeLocalVariableReference
-
makeResolvedLocalVariableReference
-
makePublic
public static int makePublic(int modifiers) -
makePackageVisible
public static int makePackageVisible(int modifiers) -
getCompilationUnitScope
-
generateParameterLoads
-
generateParameterLoads
public static void generateParameterLoads(TypeBinding[] parameters, CodeStream codeStream, int offset) -
generateReturn
-
makeMangledName
-
makeAjcMangledName
-
makeAjcMangledName
public static char[] makeAjcMangledName(char[] kind, char[] p, char[] name) -
getAjSyntheticAttribute
-
makeLongPos
public static long makeLongPos(int start, int end) -
getCompoundName
-
insert
-
insert
-
insert
-
insert
-
insert
public static TypeVariableBinding[] insert(TypeVariableBinding[] first, TypeVariableBinding[] rest) -
insert
-
copyArguments
-
remove
-
slotsNeeded
-
replaceMethodBinding
-