//generated by abstract-syntax-gen package de.peeeq.wurstscript.ast; import java.util.*; public interface ExprAtomic extends Expr, Element{ void setSource(de.peeeq.wurstscript.parser.WPos source); de.peeeq.wurstscript.parser.WPos getSource(); Element getParent(); T match(Matcher s); void match(MatcherVoid s); public interface Matcher { T case_ExprStringVal(ExprStringVal exprStringVal); T case_ExprFuncRef(ExprFuncRef exprFuncRef); T case_ExprSuper(ExprSuper exprSuper); T case_ExprIntVal(ExprIntVal exprIntVal); T case_ExprVarAccess(ExprVarAccess exprVarAccess); T case_ExprEmpty(ExprEmpty exprEmpty); T case_ExprBoolVal(ExprBoolVal exprBoolVal); T case_ExprNull(ExprNull exprNull); T case_ExprVarArrayAccess(ExprVarArrayAccess exprVarArrayAccess); T case_ExprThis(ExprThis exprThis); T case_ExprRealVal(ExprRealVal exprRealVal); } public interface MatcherVoid { void case_ExprStringVal(ExprStringVal exprStringVal); void case_ExprFuncRef(ExprFuncRef exprFuncRef); void case_ExprSuper(ExprSuper exprSuper); void case_ExprIntVal(ExprIntVal exprIntVal); void case_ExprVarAccess(ExprVarAccess exprVarAccess); void case_ExprEmpty(ExprEmpty exprEmpty); void case_ExprBoolVal(ExprBoolVal exprBoolVal); void case_ExprNull(ExprNull exprNull); void case_ExprVarArrayAccess(ExprVarArrayAccess exprVarArrayAccess); void case_ExprThis(ExprThis exprThis); void case_ExprRealVal(ExprRealVal exprRealVal); } ExprAtomic copy(); ExprAtomic copyWithRefs(); /** */ public abstract de.peeeq.immutablecollections.ImmutableList attrReadVariables(); /** */ public abstract de.peeeq.wurstscript.types.WurstType attrTyp(); /** */ public abstract de.peeeq.wurstscript.intermediatelang.ILconst attrConstantValue(); /** */ public abstract de.peeeq.wurstscript.types.WurstType attrTypRaw(); /** */ public abstract de.peeeq.wurstscript.types.WurstType attrExpectedTypRaw(); /** "try to guess what type is expected here"*/ public abstract de.peeeq.wurstscript.types.WurstType attrExpectedTyp(); /** "more precise expected type, after overloading"*/ public abstract de.peeeq.wurstscript.types.WurstType attrExpectedTypAfterOverloading(); /** */ public abstract boolean attrIsDynamicContext(); /** */ public abstract @org.eclipse.jdt.annotation.Nullable PackageOrGlobal attrNearestPackage(); /** */ public abstract @org.eclipse.jdt.annotation.Nullable NamedScope attrNearestNamedScope(); /** */ public abstract @org.eclipse.jdt.annotation.Nullable WScope attrNearestScope(); /** */ public abstract String attrPathDescription(); /** */ public abstract CompilationUnit attrCompilationUnit(); /** */ public abstract @org.eclipse.jdt.annotation.Nullable ClassDef attrNearestClassDef(); /** */ public abstract @org.eclipse.jdt.annotation.Nullable ClassOrInterface attrNearestClassOrInterface(); /** */ public abstract @org.eclipse.jdt.annotation.Nullable ClassOrModule attrNearestClassOrModule(); /** */ public abstract @org.eclipse.jdt.annotation.Nullable StructureDef attrNearestStructureDef(); /** */ public abstract @org.eclipse.jdt.annotation.Nullable FunctionImplementation attrNearestFuncDef(); /** */ public abstract @org.eclipse.jdt.annotation.Nullable ExprClosure attrNearestExprClosure(); /** */ public abstract @org.eclipse.jdt.annotation.Nullable ExprStatementsBlock attrNearestExprStatementsBlock(); /** "returns the element itself if it is a NameDef or returns the referenced NameDef if the elem is a reference or returns null otherwise "*/ public abstract @org.eclipse.jdt.annotation.Nullable NameDef tryGetNameDef(); /** */ public abstract de.peeeq.wurstscript.parser.WPos attrSource(); /** "returns the position where errors are marked"*/ public abstract de.peeeq.wurstscript.parser.WPos attrErrorPos(); /** */ public abstract WurstModel getModel(); /** */ public abstract de.peeeq.wurstscript.jassIm.ImExpr imTranslateExpr(de.peeeq.wurstscript.translation.imtranslation.ImTranslator translator, de.peeeq.wurstscript.jassIm.ImFunction f); /** */ public abstract de.peeeq.wurstscript.jassIm.ImExprOpt imTranslateExprOpt(de.peeeq.wurstscript.translation.imtranslation.ImTranslator translator, de.peeeq.wurstscript.jassIm.ImFunction f); /** */ public abstract void addError(String msg); /** */ public abstract void addWarning(String msg); /** */ public abstract de.peeeq.wurstscript.attributes.ErrorHandler getErrorHandler(); /** */ public abstract @org.eclipse.jdt.annotation.Nullable TypeDef lookupType(String name, boolean showErrors); /** */ public abstract de.peeeq.wurstscript.attributes.names.PackageLink lookupPackage(String name, boolean showErrors); /** */ public abstract de.peeeq.wurstscript.attributes.names.NameLink lookupVar(String name, boolean showErrors); /** */ public abstract de.peeeq.wurstscript.attributes.names.NameLink lookupVarNoConfig(String name, boolean showErrors); /** */ public abstract de.peeeq.wurstscript.attributes.names.NameLink lookupMemberVar(de.peeeq.wurstscript.types.WurstType receiverType, String name, boolean showErrors); /** */ public abstract com.google.common.collect.ImmutableCollection lookupFuncs(String name, boolean showErrors); /** */ public abstract com.google.common.collect.ImmutableCollection lookupFuncsNoConfig(String name, boolean showErrors); /** */ public abstract com.google.common.collect.ImmutableCollection lookupMemberFuncs(de.peeeq.wurstscript.types.WurstType receiverType, String name, boolean showErrors); /** */ public abstract @org.eclipse.jdt.annotation.Nullable TypeDef lookupType(String name); /** */ public abstract de.peeeq.wurstscript.attributes.names.PackageLink lookupPackage(String name); /** */ public abstract de.peeeq.wurstscript.attributes.names.NameLink lookupVar(String name); /** */ public abstract de.peeeq.wurstscript.attributes.names.NameLink lookupMemberVar(de.peeeq.wurstscript.types.WurstType receiverType, String name); /** */ public abstract com.google.common.collect.ImmutableCollection lookupFuncs(String name); /** */ public abstract com.google.common.collect.ImmutableCollection lookupMemberFuncs(de.peeeq.wurstscript.types.WurstType receiverType, String name); /** */ public abstract com.google.common.collect.ImmutableList attrUsedGlobalVariables(); /** */ public abstract com.google.common.collect.ImmutableList attrReadGlobalVariables(); /** */ public abstract com.google.common.collect.ImmutableCollection attrUsedPackages(); /** */ public abstract String description(); /** */ public abstract String descriptionHtml(); /** */ public abstract boolean isSubtreeOf(Element other); /** */ public abstract void prettyPrint(de.peeeq.wurstscript.attributes.prettyPrint.Spacer spacer, StringBuilder sb, int indent); }