|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.pfl.dynamic.codegen.impl.MemberInfoBase
org.glassfish.pfl.dynamic.codegen.impl.MethodInfoBase
org.glassfish.pfl.dynamic.codegen.impl.MethodGenerator
public final class MethodGenerator
| Field Summary |
|---|
| Fields inherited from class org.glassfish.pfl.dynamic.codegen.impl.MethodInfoBase |
|---|
arguments, exceptions, rtype |
| Method Summary | ||
|---|---|---|
void |
accept(Visitor visitor)
Accept the visitor and allow it to perform actions on this Node. |
|
Variable |
addArgument(Type type,
String ident)
|
|
void |
argsComplete()
|
|
List<Object> |
attributes()
Internal method for dynamic attribute support. |
|
BlockStatement |
body()
|
|
|
copy(Class<T> cls)
Make a deep copy of this node. |
|
|
copy(Node newParent,
Class<T> cls)
Copy setting a new parent in the result. |
|
Object |
get(int index)
Internal method for dynamic attribute support. |
|
|
getAncestor(Class<T> type)
Return the first ancestor of this node of the given type, if any. |
|
int |
hashCode()
|
|
int |
id()
Return the unique ID of this node. |
|
boolean |
isConstructor()
Returns true if this is a constructor, false if method. |
|
Node |
parent()
Return the Node that contains (and created) this Node. |
|
void |
parent(Node node)
Set the parent to a new value. |
|
void |
set(int index,
Object obj)
Internal method for dynamic attribute support. |
|
| Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.MethodInfoBase |
|---|
arguments, clearHashCode, equals, exceptions, getConstructor, getMethod, returnType, signature |
| Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.MemberInfoBase |
|---|
isAccessibleInContext, modifiers, myClassInfo, name, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.glassfish.pfl.dynamic.codegen.spi.MemberInfo |
|---|
isAccessibleInContext, modifiers, myClassInfo, name |
| Method Detail |
|---|
public BlockStatement body()
public Node parent()
Node
parent in interface Nodepublic int id()
Node
id in interface Nodepublic void parent(Node node)
Node
parent in interface Nodepublic <T extends Node> T getAncestor(Class<T> type)
Node
getAncestor in interface Nodepublic <T extends Node> T copy(Class<T> cls)
Node
copy in interface Node
public <T extends Node> T copy(Node newParent,
Class<T> cls)
Node
copy in interface Nodepublic Object get(int index)
AttributedObject
get in interface AttributedObject
public void set(int index,
Object obj)
AttributedObject
set in interface AttributedObjectpublic List<Object> attributes()
AttributedObject
attributes in interface AttributedObject
public Variable addArgument(Type type,
String ident)
public boolean isConstructor()
MethodInfo
isConstructor in interface MethodInfoisConstructor in class MethodInfoBasepublic void argsComplete()
public int hashCode()
hashCode in class MethodInfoBasepublic void accept(Visitor visitor)
Node
accept in interface Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||