| java.lang.Object net.sourceforge.jrefactory.ast.SimpleNode net.sourceforge.jrefactory.ast.ASTFormalParameter
ASTFormalParameter | public class ASTFormalParameter extends SimpleNode (Code) | | Stores an individual formal parameter in a method declaration
author: Mike Atkinson since: jRefactory 2.9.0, created October 16, 2003 |
Method Summary | |
public boolean | hasVarArg() Does this formal parameter have a variable argument. | public boolean | isUsingFinal() | public Object | jjtAccept(JavaParserVisitor visitor, Object data) Accept the visitor.
Parameters: visitor - An implementation of JavaParserVisitor that processes the ASTFormalParameter node. Parameters: data - Some data being passed between the visitor methods. | public void | setUsingFinal(boolean way) | public void | setVarArg(boolean varArg) Mark that this formal parameter as having a variable argument. | public int | skipAnnotations() |
ASTFormalParameter | public ASTFormalParameter(int identifier)(Code) | | Constructor for the ASTFormalParameter node.
Parameters: identifier - The id of this node (JJTFORMALPARAMETER). |
ASTFormalParameter | public ASTFormalParameter(JavaParser parser, int identifier)(Code) | | Constructor for the ASTFormalParameter node.
Parameters: parser - The JavaParser that created this ASTFormalParameter node. Parameters: identifier - The id of this node (JJTFORMALPARAMETER). |
hasVarArg | public boolean hasVarArg()(Code) | | Does this formal parameter have a variable argument.
VarArg is new to JDK 1.5
true if this Formal Parameter a VarArg |
isUsingFinal | public boolean isUsingFinal()(Code) | | Return whether this formal parameter using the final modifier
if the formal modifier is used |
jjtAccept | public Object jjtAccept(JavaParserVisitor visitor, Object data)(Code) | | Accept the visitor.
Parameters: visitor - An implementation of JavaParserVisitor that processes the ASTFormalParameter node. Parameters: data - Some data being passed between the visitor methods. Usually the data parameter (possibly modified). |
setUsingFinal | public void setUsingFinal(boolean way)(Code) | | Mark that this formal parameter using the final modifier
Parameters: way - the way to set the final modifier |
setVarArg | public void setVarArg(boolean varArg)(Code) | | Mark that this formal parameter as having a variable argument.
VarArg is new to JDK 1.5
Parameters: varArg - is this Formal Parameter a VarArg |
skipAnnotations | public int skipAnnotations()(Code) | | |
Methods inherited from net.sourceforge.jrefactory.ast.SimpleNode | public void addSpecial(String key, Token value)(Code)(Java Doc) public Object childrenAccept(JavaParserVisitor visitor, Object data)(Code)(Java Doc) public void dump(String prefix)(Code)(Java Doc) public String dumpString(String prefix)(Code)(Java Doc) public List findChildrenOfType(Class targetType)(Code)(Java Doc) public void findChildrenOfType(Class targetType, List results)(Code)(Java Doc) public void findChildrenOfType(Class targetType, List results, boolean descendIntoNestedClasses)(Code)(Java Doc) public int getBeginColumn()(Code)(Java Doc) public int getBeginLine()(Code)(Java Doc) public int getEndColumn()(Code)(Java Doc) public int getEndLine()(Code)(Java Doc) public String getImage()(Code)(Java Doc) public String getName()(Code)(Java Doc) public Scope getScope()(Code)(Java Doc) public Token getSpecial(String key)(Code)(Java Doc) public boolean hasAnyChildren()(Code)(Java Doc) protected void init()(Code)(Java Doc) public boolean isRequired()(Code)(Java Doc) public Object jjtAccept(JavaParserVisitor visitor, Object data)(Code)(Java Doc) public void jjtAddChild(Node n, int i)(Code)(Java Doc) public void jjtAddFirstChild(Node n)(Code)(Java Doc) public void jjtClose()(Code)(Java Doc) public void jjtDeleteChild(int i)(Code)(Java Doc) public Node jjtGetChild(int i)(Code)(Java Doc) public Node jjtGetFirstChild()(Code)(Java Doc) public int jjtGetID()(Code)(Java Doc) public int jjtGetNumChildren()(Code)(Java Doc) public Node jjtGetParent()(Code)(Java Doc) public void jjtInsertChild(Node n, int i)(Code)(Java Doc) public void jjtOpen()(Code)(Java Doc) public void jjtSetParent(Node n)(Code)(Java Doc) protected String printModifiers()(Code)(Java Doc) public void removeSpecial(String key)(Code)(Java Doc) public void setLineAndColumnInfo(int beginLine, int beginColumn, int endLine, int endColumn)(Code)(Java Doc) public void setScope(Scope scope)(Code)(Java Doc) public void testingOnly__setBeginColumn(int i)(Code)(Java Doc) public void testingOnly__setBeginLine(int i)(Code)(Java Doc) public String toString()(Code)(Java Doc) public String toString(String prefix)(Code)(Java Doc)
|
|
|