public class ProcessedText extends java.lang.Object implements GenSrcValue
| Modifier and Type | Field and Description |
|---|---|
protected dyvil.source.position.SourcePosition |
position |
protected java.lang.String |
text |
CALL_DIRECTIVE, PROCESSED_TEXT, SCOPE_DIRECTIVE, WRITE_CALLANNOTATION, APPLY_CALL, ARRAY, BOOLEAN, BOOLEAN_AND, BOOLEAN_NOT, BOOLEAN_OR, BRACE_ACCESS, BREAK, BYTE, CAST_OPERATOR, CHAR, CLASS_ACCESS, CLASS_OPERATOR, COLON, CONSTRUCTOR_CALL, CONTINUE, CONVERSION_MATCH, DO_WHILE, DOUBLE, ENUM_ACCESS, EXACT_MATCH, FIELD_ACCESS, FIELD_ASSIGN, FLOAT, FOR, GOTO, IF, IMPLICIT_CONVERSION_MATCH, INC, INITIALIZER_CALL, INT, ISOF_OPERATOR, LAMBDA, LITERAL_CONVERSION, LONG, MAP, MATCH, MEMBER_STATEMENT, METHOD_ASSIGN, METHOD_CALL, MISMATCH, NULL, NULL_COALESCING, OPERATOR_CHAIN, OPTIONAL_CHAIN, OPTIONAL_UNWRAP, POP_EXPR, PREFIX_CALL, REFERENCE, RETURN, SECONDARY_MATCH, SECONDARY_SUBTYPE_MATCH, SHORT, STATEMENT_LIST, STRING, STRING_CONCAT, STRING_INTERPOLATION, SUBSCRIPT_GET, SUBSCRIPT_SET, SUBTYPE_MATCH, SUPER, SYNCHRONIZED, THIS, THROW, TRY, TUPLE, TYPE_OPERATOR, UNKNOWN, UPDATE_CALL, VARARGS_EXPANSION, VARIABLE, VOID, WHILE, WILDCARD, WILDCARD_PARAMETER| Constructor and Description |
|---|
ProcessedText(dyvil.source.position.SourcePosition position,
java.lang.String text) |
ProcessedText(java.lang.String value) |
| Modifier and Type | Method and Description |
|---|---|
void |
check(dyvilx.tools.parsing.marker.MarkerList markers,
dyvilx.tools.compiler.ast.context.IContext context) |
void |
checkTypes(dyvilx.tools.parsing.marker.MarkerList markers,
dyvilx.tools.compiler.ast.context.IContext context) |
dyvilx.tools.compiler.ast.expression.IValue |
cleanup(dyvilx.tools.compiler.ast.header.ICompilableList compilableList,
dyvilx.tools.compiler.ast.header.IClassCompilableList classCompilableList) |
dyvilx.tools.compiler.ast.expression.IValue |
foldConstants() |
dyvil.source.position.SourcePosition |
getPosition() |
java.lang.String |
getText() |
boolean |
isResolved() |
dyvilx.tools.compiler.ast.expression.IValue |
resolve(dyvilx.tools.parsing.marker.MarkerList markers,
dyvilx.tools.compiler.ast.context.IContext context) |
void |
resolveTypes(dyvilx.tools.parsing.marker.MarkerList markers,
dyvilx.tools.compiler.ast.context.IContext context) |
void |
setPosition(dyvil.source.position.SourcePosition position) |
void |
setText(java.lang.String text) |
void |
toString(java.lang.String indent,
java.lang.StringBuilder buffer) |
int |
valueTag() |
void |
writeExpression(dyvilx.tools.compiler.backend.method.MethodWriter writer,
dyvilx.tools.compiler.ast.type.IType type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeasIgnoredClassAccess, booleanValue, checkVarargs, doubleValue, floatValue, fromObject, getAnnotationError, getTypeMatch, hasSideEffects, intValue, isAnnotationConstant, isClassAccess, isConstant, isConstantOrField, isIgnoredClassAccess, isNumeric, isPartialWildcard, isPolyExpression, isStatement, isType, isUsableAsStatement, longValue, resolveStatement, setType, stringSize, stringValue, toAnnotationConstant, toAnnotationConstant, toAssignment, toCompoundAssignment, toObject, toReferenceValue, toStringBuilder, withLambdaParameter, withType, writeAnnotationValue, writeStore, writeStoreLoadprotected java.lang.String text
protected dyvil.source.position.SourcePosition position
public ProcessedText(java.lang.String value)
public ProcessedText(dyvil.source.position.SourcePosition position,
java.lang.String text)
public int valueTag()
valueTag in interface dyvilx.tools.compiler.ast.expression.IValuepublic dyvil.source.position.SourcePosition getPosition()
getPosition in interface dyvil.source.position.Positionedpublic void setPosition(dyvil.source.position.SourcePosition position)
setPosition in interface dyvil.source.position.Positionedpublic java.lang.String getText()
public void setText(java.lang.String text)
public boolean isResolved()
isResolved in interface dyvilx.tools.compiler.ast.expression.IValueisResolved in interface GenSrcValuepublic void resolveTypes(dyvilx.tools.parsing.marker.MarkerList markers,
dyvilx.tools.compiler.ast.context.IContext context)
resolveTypes in interface dyvilx.tools.compiler.ast.expression.IValuepublic dyvilx.tools.compiler.ast.expression.IValue resolve(dyvilx.tools.parsing.marker.MarkerList markers,
dyvilx.tools.compiler.ast.context.IContext context)
resolve in interface dyvilx.tools.compiler.ast.expression.IValuepublic void checkTypes(dyvilx.tools.parsing.marker.MarkerList markers,
dyvilx.tools.compiler.ast.context.IContext context)
checkTypes in interface dyvilx.tools.compiler.ast.expression.IValuepublic void check(dyvilx.tools.parsing.marker.MarkerList markers,
dyvilx.tools.compiler.ast.context.IContext context)
check in interface dyvilx.tools.compiler.ast.expression.IValuepublic dyvilx.tools.compiler.ast.expression.IValue foldConstants()
foldConstants in interface dyvilx.tools.compiler.ast.expression.IValuepublic dyvilx.tools.compiler.ast.expression.IValue cleanup(dyvilx.tools.compiler.ast.header.ICompilableList compilableList,
dyvilx.tools.compiler.ast.header.IClassCompilableList classCompilableList)
cleanup in interface dyvilx.tools.compiler.ast.expression.IValuepublic void writeExpression(dyvilx.tools.compiler.backend.method.MethodWriter writer,
dyvilx.tools.compiler.ast.type.IType type)
throws dyvilx.tools.compiler.backend.exception.BytecodeException
writeExpression in interface dyvilx.tools.compiler.ast.expression.IValuewriteExpression in interface dyvilx.tools.compiler.ast.expression.WriteableExpressiondyvilx.tools.compiler.backend.exception.BytecodeExceptionpublic void toString(java.lang.String indent,
java.lang.StringBuilder buffer)
toString in interface dyvilx.tools.compiler.ast.expression.IValuetoString in interface dyvilx.tools.parsing.ASTNode