public class HLJCompilerContext
extends net.thevpc.jeep.impl.compiler.JCompilerContextImpl
| Modifier and Type | Class and Description |
|---|---|
static class |
HLJCompilerContext.ConversionTrace |
static class |
HLJCompilerContext.LookupType |
| Constructor and Description |
|---|
HLJCompilerContext(HProject project) |
HLJCompilerContext(HProject project,
net.thevpc.jeep.JCompilationUnit compilationUnit) |
HLJCompilerContext(int iteration,
int pass,
net.thevpc.jeep.JNodePath path,
net.thevpc.jeep.JImportInfo[] imports,
net.thevpc.jeep.JContext context,
String packageName,
net.thevpc.jeep.JCompilerLog log,
HProject project,
net.thevpc.jeep.JCompilationUnit compilationUnit,
HLJCompilerContext parent) |
| Modifier and Type | Method and Description |
|---|---|
net.thevpc.jeep.JInvokable |
createConverter(net.thevpc.jeep.JOnError jOnError,
net.thevpc.jeep.JType from,
net.thevpc.jeep.JType to,
net.thevpc.jeep.JNode location,
FindMatchFailInfo failInfo) |
HNTypeToken |
createSpecialTypeToken(String name) |
void |
debug(String type,
Object msg) |
protected net.thevpc.jeep.JInvokableCost[] |
filterAcceptable(Set<net.thevpc.jeep.JInvokable> acceptable,
net.thevpc.jeep.JTypePattern[] args,
net.thevpc.jeep.JToken location,
boolean bestOnly,
List<net.thevpc.jeep.JInvokableCost> finalResultNonBestOnly,
FindMatchFailInfo failInfo) |
net.thevpc.jeep.JInvokableCost[] |
findAllMatchesBase(String[] nameAlternatives,
net.thevpc.jeep.JTypePattern[] args,
net.thevpc.jeep.JToken location,
boolean bestOnly,
FindMatchFailInfo failInfo) |
net.thevpc.jeep.JInvokable |
findConstructorMatch(net.thevpc.jeep.JOnError jOnError,
net.thevpc.jeep.JType baseType,
net.thevpc.jeep.JTypePattern[] args,
net.thevpc.jeep.JToken location,
FindMatchFailInfo failInfo) |
net.thevpc.jeep.JInvokable |
findInstanceMatch(net.thevpc.jeep.JOnError jOnError,
String name,
HFunctionType opType,
net.thevpc.jeep.JTypePattern base,
net.thevpc.jeep.JTypePattern[] args,
net.thevpc.jeep.JToken location,
FindMatchFailInfo failInfo) |
net.thevpc.jeep.JInvokable |
findStaticMatch(net.thevpc.jeep.JOnError jOnError,
net.thevpc.jeep.JType staticType,
String name,
HFunctionType functionType,
net.thevpc.jeep.JTypePattern[] args,
net.thevpc.jeep.JToken location,
FindMatchFailInfo failInfo) |
net.thevpc.jeep.JCallerInfo |
getCallerInfo() |
net.thevpc.jeep.JImportInfo[] |
getImports() |
HNDeclareType |
getMetaPackageType() |
HNode |
getNode() |
net.thevpc.jeep.JType |
getOrCreateType(HNDeclareType type) |
net.thevpc.jeep.JType |
getThisType() |
net.thevpc.jeep.JType |
getThisType(HNode n) |
net.thevpc.jeep.JTypePattern[] |
getTypePattern(boolean showError,
net.thevpc.jeep.JNode... all) |
net.thevpc.jeep.JTypePattern |
getTypePattern(boolean showError,
net.thevpc.jeep.JNode n) |
net.thevpc.jeep.JTypePattern[] |
getTypePattern(boolean showError,
List<HNode> all) |
net.thevpc.jeep.JTypePattern[] |
getTypePattern(net.thevpc.jeep.JNode... all) |
net.thevpc.jeep.JTypePattern |
getTypePattern(net.thevpc.jeep.JNode node) |
HIndexer |
indexer() |
boolean |
isOpChar(char c) |
boolean |
isPackage(String packageName) |
boolean |
isStaticContext() |
boolean |
isStaticContext(net.thevpc.jeep.JNode n) |
boolean |
isTypes(net.thevpc.jeep.JTypePattern[] all) |
static boolean |
isValidTypeName(String s) |
boolean |
isVisible(net.thevpc.jeep.JConstructor x) |
boolean |
isVisible(net.thevpc.jeep.JField jField) |
boolean |
isVisible(net.thevpc.jeep.JMethod x) |
net.thevpc.jeep.JType[] |
jTypes(net.thevpc.jeep.JTypePattern... all) |
HNElement |
lookupElement(net.thevpc.jeep.JOnError onError,
String name,
HNode dotBase,
HNode[] arguments,
boolean lhs,
net.thevpc.jeep.JToken location,
net.thevpc.jeep.JNode fromNode,
FindMatchFailInfo failInfo) |
HNode |
lookupEnclosingDeclaration(net.thevpc.jeep.JNode node) |
HNode |
lookupEnclosingDeclaration(net.thevpc.jeep.JNode node,
boolean returnMetaPackage) |
HNode |
lookupEnclosingDeclarationOrMetaPackage(net.thevpc.jeep.JNode node) |
HNDeclareIdentifier |
lookupEnclosingDeclareIdentifier(HNDeclareToken node) |
HNDeclareType |
lookupEnclosingDeclareType(net.thevpc.jeep.JNode node) |
HNDeclareType |
lookupEnclosingDeclareTypeImmediate(net.thevpc.jeep.JNode node) |
HNDeclareInvokable |
lookupEnclosingInvokable() |
net.thevpc.jeep.JType |
lookupEnclosingType(net.thevpc.jeep.JNode node) |
net.thevpc.jeep.JInvokable |
lookupFunctionMatch(net.thevpc.jeep.JOnError jOnError,
String name,
HFunctionType opType,
net.thevpc.jeep.JTypePattern[] args,
net.thevpc.jeep.JToken location) |
net.thevpc.jeep.JInvokable |
lookupFunctionMatch(net.thevpc.jeep.JOnError jOnError,
String name,
HFunctionType opType,
net.thevpc.jeep.JTypePattern[] args,
net.thevpc.jeep.JToken location,
FindMatchFailInfo failInfo) |
HNElementLocalVar[] |
lookupLocalVarDeclarations(String name,
net.thevpc.jeep.JToken location,
net.thevpc.jeep.JNode fromNode,
FindMatchFailInfo failInfo) |
net.thevpc.jeep.JType |
lookupType(net.thevpc.jeep.JTypeNameOrVariable nameUsingImports) |
net.thevpc.jeep.JType |
lookupType(String nameUsingImports) |
net.thevpc.jeep.JType |
lookupTypeOrNull(net.thevpc.jeep.JTypeNameOrVariable typeName) |
List<net.thevpc.jeep.JType> |
lookupTypes(boolean importedOnly,
Predicate<String> predicate) |
void |
markLocalDeclared(HNElement element,
net.thevpc.jeep.JNode declaringNode,
net.thevpc.jeep.JToken location) |
net.thevpc.jeep.JCompilerContext |
newInstance(int iteration,
int pass,
net.thevpc.jeep.JNodePath path,
net.thevpc.jeep.JImportInfo[] imports,
net.thevpc.jeep.JContext context,
String packageName,
net.thevpc.jeep.JCompilerLog log,
net.thevpc.jeep.JCompilationUnit compilationUnit,
net.thevpc.jeep.JCompilerContext parent) |
HLJCompilerContext |
nextNode(net.thevpc.jeep.JNode node) |
String |
nextVarName() |
String |
nextVarName(String n) |
String |
nextVarName(String n,
net.thevpc.jeep.JNode node) |
String |
nextVarName2(String n,
net.thevpc.jeep.JNode node) |
HProject |
project() |
net.thevpc.jeep.JConverter[] |
resolveApplicableConverters(net.thevpc.jeep.JTypePattern from) |
net.thevpc.jeep.impl.functions.JSignature |
signature(net.thevpc.jeep.impl.functions.JNameSignature sig) |
net.thevpc.jeep.JTypes |
types() |
void |
visit(net.thevpc.jeep.JNodeVisitor visitor) |
appendImport, dropNode, getCompilationUnit, getContext, getIteration, getLog, getPackageName, getParent, getPath, getStage, isStage, setCompilationUnit, setIteration, setLog, setPackageName, setParent, setStage, toStringpublic HLJCompilerContext(HProject project)
public HLJCompilerContext(HProject project, net.thevpc.jeep.JCompilationUnit compilationUnit)
public HLJCompilerContext(int iteration,
int pass,
net.thevpc.jeep.JNodePath path,
net.thevpc.jeep.JImportInfo[] imports,
net.thevpc.jeep.JContext context,
String packageName,
net.thevpc.jeep.JCompilerLog log,
HProject project,
net.thevpc.jeep.JCompilationUnit compilationUnit,
HLJCompilerContext parent)
public static boolean isValidTypeName(String s)
public HIndexer indexer()
public HProject project()
public net.thevpc.jeep.JTypes types()
public void visit(net.thevpc.jeep.JNodeVisitor visitor)
public boolean isOpChar(char c)
public net.thevpc.jeep.JInvokable findStaticMatch(net.thevpc.jeep.JOnError jOnError,
net.thevpc.jeep.JType staticType,
String name,
HFunctionType functionType,
net.thevpc.jeep.JTypePattern[] args,
net.thevpc.jeep.JToken location,
FindMatchFailInfo failInfo)
public net.thevpc.jeep.JInvokable lookupFunctionMatch(net.thevpc.jeep.JOnError jOnError,
String name,
HFunctionType opType,
net.thevpc.jeep.JTypePattern[] args,
net.thevpc.jeep.JToken location)
public net.thevpc.jeep.JInvokable findInstanceMatch(net.thevpc.jeep.JOnError jOnError,
String name,
HFunctionType opType,
net.thevpc.jeep.JTypePattern base,
net.thevpc.jeep.JTypePattern[] args,
net.thevpc.jeep.JToken location,
FindMatchFailInfo failInfo)
public net.thevpc.jeep.JInvokable lookupFunctionMatch(net.thevpc.jeep.JOnError jOnError,
String name,
HFunctionType opType,
net.thevpc.jeep.JTypePattern[] args,
net.thevpc.jeep.JToken location,
FindMatchFailInfo failInfo)
public boolean isVisible(net.thevpc.jeep.JField jField)
public boolean isVisible(net.thevpc.jeep.JMethod x)
public boolean isVisible(net.thevpc.jeep.JConstructor x)
public net.thevpc.jeep.JInvokableCost[] findAllMatchesBase(String[] nameAlternatives, net.thevpc.jeep.JTypePattern[] args, net.thevpc.jeep.JToken location, boolean bestOnly, FindMatchFailInfo failInfo)
protected net.thevpc.jeep.JInvokableCost[] filterAcceptable(Set<net.thevpc.jeep.JInvokable> acceptable, net.thevpc.jeep.JTypePattern[] args, net.thevpc.jeep.JToken location, boolean bestOnly, List<net.thevpc.jeep.JInvokableCost> finalResultNonBestOnly, FindMatchFailInfo failInfo)
public boolean isTypes(net.thevpc.jeep.JTypePattern[] all)
public boolean isPackage(String packageName)
public net.thevpc.jeep.JType lookupType(String nameUsingImports)
public net.thevpc.jeep.JType lookupType(net.thevpc.jeep.JTypeNameOrVariable nameUsingImports)
public HNElementLocalVar[] lookupLocalVarDeclarations(String name, net.thevpc.jeep.JToken location, net.thevpc.jeep.JNode fromNode, FindMatchFailInfo failInfo)
public net.thevpc.jeep.JType lookupTypeOrNull(net.thevpc.jeep.JTypeNameOrVariable typeName)
public List<net.thevpc.jeep.JType> lookupTypes(boolean importedOnly, Predicate<String> predicate)
public String nextVarName()
public HNDeclareType lookupEnclosingDeclareTypeImmediate(net.thevpc.jeep.JNode node)
public net.thevpc.jeep.JType lookupEnclosingType(net.thevpc.jeep.JNode node)
public HNode lookupEnclosingDeclaration(net.thevpc.jeep.JNode node)
public HNode lookupEnclosingDeclarationOrMetaPackage(net.thevpc.jeep.JNode node)
public HNode lookupEnclosingDeclaration(net.thevpc.jeep.JNode node, boolean returnMetaPackage)
public HNDeclareType lookupEnclosingDeclareType(net.thevpc.jeep.JNode node)
public HNDeclareIdentifier lookupEnclosingDeclareIdentifier(HNDeclareToken node)
public HNDeclareInvokable lookupEnclosingInvokable()
public HNDeclareType getMetaPackageType()
public net.thevpc.jeep.JInvokable createConverter(net.thevpc.jeep.JOnError jOnError,
net.thevpc.jeep.JType from,
net.thevpc.jeep.JType to,
net.thevpc.jeep.JNode location,
FindMatchFailInfo failInfo)
public net.thevpc.jeep.JInvokable findConstructorMatch(net.thevpc.jeep.JOnError jOnError,
net.thevpc.jeep.JType baseType,
net.thevpc.jeep.JTypePattern[] args,
net.thevpc.jeep.JToken location,
FindMatchFailInfo failInfo)
public net.thevpc.jeep.JType[] jTypes(net.thevpc.jeep.JTypePattern... all)
public net.thevpc.jeep.JTypePattern getTypePattern(boolean showError,
net.thevpc.jeep.JNode n)
public net.thevpc.jeep.JTypePattern[] getTypePattern(boolean showError,
List<HNode> all)
public net.thevpc.jeep.JTypePattern[] getTypePattern(boolean showError,
net.thevpc.jeep.JNode... all)
public net.thevpc.jeep.JTypePattern getTypePattern(net.thevpc.jeep.JNode node)
public net.thevpc.jeep.JTypePattern[] getTypePattern(net.thevpc.jeep.JNode... all)
public net.thevpc.jeep.JConverter[] resolveApplicableConverters(net.thevpc.jeep.JTypePattern from)
public HNTypeToken createSpecialTypeToken(String name)
public net.thevpc.jeep.impl.functions.JSignature signature(net.thevpc.jeep.impl.functions.JNameSignature sig)
public boolean isStaticContext()
public net.thevpc.jeep.JType getThisType()
public net.thevpc.jeep.JType getThisType(HNode n)
public boolean isStaticContext(net.thevpc.jeep.JNode n)
public HNElement lookupElement(net.thevpc.jeep.JOnError onError, String name, HNode dotBase, HNode[] arguments, boolean lhs, net.thevpc.jeep.JToken location, net.thevpc.jeep.JNode fromNode, FindMatchFailInfo failInfo)
public net.thevpc.jeep.JType getOrCreateType(HNDeclareType type)
public void markLocalDeclared(HNElement element, net.thevpc.jeep.JNode declaringNode, net.thevpc.jeep.JToken location)
public HNode getNode()
getNode in interface net.thevpc.jeep.JCompilerContextgetNode in class net.thevpc.jeep.impl.compiler.JCompilerContextImplpublic net.thevpc.jeep.JImportInfo[] getImports()
getImports in interface net.thevpc.jeep.JCompilerContextgetImports in class net.thevpc.jeep.impl.compiler.JCompilerContextImplpublic HLJCompilerContext nextNode(net.thevpc.jeep.JNode node)
nextNode in interface net.thevpc.jeep.JCompilerContextnextNode in class net.thevpc.jeep.impl.compiler.JCompilerContextImplpublic net.thevpc.jeep.JCompilerContext newInstance(int iteration,
int pass,
net.thevpc.jeep.JNodePath path,
net.thevpc.jeep.JImportInfo[] imports,
net.thevpc.jeep.JContext context,
String packageName,
net.thevpc.jeep.JCompilerLog log,
net.thevpc.jeep.JCompilationUnit compilationUnit,
net.thevpc.jeep.JCompilerContext parent)
newInstance in class net.thevpc.jeep.impl.compiler.JCompilerContextImplpublic net.thevpc.jeep.JCallerInfo getCallerInfo()
Copyright © 2021 vpc open source initiative. All rights reserved.