|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParseableNode
Basic Interface that allows the JavaWriter to turn GP nodes into Java Code. It allows the JavaWriter to assign names to each function (for variable declaration) and allows it to access the GP node's children.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version, provided that any use properly credits the author. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org
ParseableERC
,
ParseableGPNode
Field Summary | |
---|---|
static int |
BOOLEAN
|
static int |
DOUBLE
|
static int |
ERC
|
static int |
FUNCTION
|
static int |
INT
|
static int |
RETURN
|
static int |
VOID
|
Method Summary | |
---|---|
int |
countChildren()
Returns how many children this node has |
ParseableNode |
getChild(int index)
Gets the child of this node at a given index. |
java.lang.String |
getJavaCode()
Writes out the java for this node |
java.lang.String |
getLineComment()
There may be a line comment associated with this piece of code. |
int |
getObjectType()
The kind of object this is, eg int, double, etc. |
int |
getType()
Returns what kind of node this is. |
java.lang.String |
getVariableName()
When the java writer uses this node, it may use a variable name to refer to it. |
void |
setType(int type)
Set the node type |
void |
setVariableName(java.lang.String name)
Attaches a variable name to this node, (performed automatically by JavaWriter). |
Field Detail |
---|
static final int FUNCTION
static final int ERC
static final int VOID
static final int RETURN
static final int BOOLEAN
static final int DOUBLE
static final int INT
Method Detail |
---|
java.lang.String getVariableName()
void setVariableName(java.lang.String name)
ParseableNode getChild(int index)
int countChildren()
int getType()
void setType(int type)
int getObjectType()
java.lang.String getLineComment()
java.lang.String getJavaCode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |