logic.code
Class CodeItem
java.lang.Object
logic.code.CodeItem
- Direct Known Subclasses:
- CommentItem, SingleLineItem, StatementItem
public class CodeItem
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UNDEFINED
public static final int UNDEFINED
- See Also:
- Constant Field Values
PACKAGE
public static final int PACKAGE
- See Also:
- Constant Field Values
IMPORT
public static final int IMPORT
- See Also:
- Constant Field Values
COMMENT
public static final int COMMENT
- See Also:
- Constant Field Values
CLASS
public static final int CLASS
- See Also:
- Constant Field Values
METHOD
public static final int METHOD
- See Also:
- Constant Field Values
LOOP
public static final int LOOP
- See Also:
- Constant Field Values
SWITCH
public static final int SWITCH
- See Also:
- Constant Field Values
IF
public static final int IF
- See Also:
- Constant Field Values
TRY
public static final int TRY
- See Also:
- Constant Field Values
GL_MODE
public static final int GL_MODE
- See Also:
- Constant Field Values
Z_OFFSET
public static final float Z_OFFSET
- See Also:
- Constant Field Values
CodeItem
public CodeItem(CodeItem parent,
int lineNumber)
CodeItem
public CodeItem(CodeItem parent,
int lineNumber,
int mode)
getZIndex
public float getZIndex()
getParent
public CodeItem getParent()
addChild
public void addChild(CodeItem item)
getChildren
public java.util.LinkedList<CodeItem> getChildren()
addLine
public void addLine(java.lang.String line,
int lineNum)
getCurrentItem
public CodeItem getCurrentItem()
getMode
public int getMode()
nextLine
public java.lang.String nextLine()
getFirstLine
public java.lang.String getFirstLine()
reset
public void reset()
hasNext
public boolean hasNext()
firstLine
public int firstLine()
lastLine
public int lastLine()
lineStart
public int lineStart()
maxLine
public int maxLine()
getColor
public java.awt.Color getColor()
toList
public java.util.LinkedList<CodeItem> toList()
setAlpha
public void setAlpha(float alpha)
getAlpha
public float getAlpha()