public class JooSymbol extends java_cup.runtime.Symbol implements FilePosition
| Constructor and Description |
|---|
JooSymbol(int sym,
String text) |
JooSymbol(int sym,
String fileName,
int line,
int column,
String whitespace,
String text) |
JooSymbol(int sym,
String fileName,
int line,
int column,
String whitespace,
String text,
Object jooValue) |
JooSymbol(String text) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumn() |
String |
getFileName() |
Object |
getJooValue() |
int |
getLine() |
String |
getSourceCode() |
String |
getText() |
String |
getWhitespace() |
boolean |
isSemicolonInsertedBefore() |
boolean |
isVirtual() |
JooSymbol |
replacingSymAndTextAndJooValue(int sym,
String text,
Object jooValue) |
void |
setSemicolonInsertedBefore(boolean semicolonInsertedBefore) |
void |
setWhitespace(String whitespace)
Use only for symbols that have just been created!
Especially the MXML compiler often creates AST sub-trees and wants to copy over the white-space
from the MXML element afterwards.
|
String |
toString() |
JooSymbol |
virtual() |
JooSymbol |
withoutWhitespace() |
JooSymbol |
withWhitespace(String whitespace) |
public JooSymbol(String text)
public JooSymbol(int sym,
String text)
public JooSymbol(int sym,
String fileName,
int line,
int column,
String whitespace,
String text)
public JooSymbol replacingSymAndTextAndJooValue(int sym, String text, Object jooValue)
public JooSymbol withoutWhitespace()
public String toString()
toString in class java_cup.runtime.Symbolpublic String getText()
public String getWhitespace()
public void setWhitespace(String whitespace)
whitespace - the white-space to inject into this symbolpublic String getSourceCode()
public Object getJooValue()
public String getFileName()
getFileName in interface FilePositionpublic int getLine()
getLine in interface FilePositionpublic int getColumn()
getColumn in interface FilePositionpublic boolean isVirtual()
public JooSymbol virtual()
public boolean isSemicolonInsertedBefore()
public void setSemicolonInsertedBefore(boolean semicolonInsertedBefore)
Copyright © 2002–2021 CoreMedia AG. All rights reserved.