Enum NameResolver
- java.lang.Object
-
- java.lang.Enum<NameResolver>
-
- org.fulib.scenarios.visitor.resolve.NameResolver
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<NameResolver>,CompilationContext.Visitor<java.lang.Object,java.lang.Object>,Name.Visitor<Scope,Name>,ResolvedName.Visitor<Scope,Name>,UnresolvedName.Visitor<Scope,Name>,Scenario.Visitor<Scope,java.lang.Object>,ScenarioFile.Visitor<Scope,java.lang.Object>,ScenarioGroup.Visitor<Scope,java.lang.Object>
public enum NameResolver extends java.lang.Enum<NameResolver> implements CompilationContext.Visitor<java.lang.Object,java.lang.Object>, ScenarioGroup.Visitor<Scope,java.lang.Object>, ScenarioFile.Visitor<Scope,java.lang.Object>, Scenario.Visitor<Scope,java.lang.Object>, Name.Visitor<Scope,Name>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringANSWER_VARprotected static java.lang.StringPREDICATE_RECEIVER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NameResolvervalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static NameResolver[]values()Returns an array containing the constants of this enum type, in the order they are declared.java.lang.Objectvisit(CompilationContext compilationContext, java.lang.Object par)Namevisit(Name name, Scope par)Namevisit(ResolvedName resolvedName, Scope par)Namevisit(UnresolvedName unresolvedName, Scope par)java.lang.Objectvisit(ScenarioFile scenarioFile, Scope par)java.lang.Objectvisit(ScenarioGroup scenarioGroup, Scope par)java.lang.Objectvisit(Scenario scenario, Scope par)
-
-
-
Enum Constant Detail
-
INSTANCE
public static final NameResolver INSTANCE
-
-
Field Detail
-
PREDICATE_RECEIVER
protected static final java.lang.String PREDICATE_RECEIVER
- See Also:
- Constant Field Values
-
ANSWER_VAR
protected static final java.lang.String ANSWER_VAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static NameResolver[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NameResolver c : NameResolver.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NameResolver valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
visit
public java.lang.Object visit(CompilationContext compilationContext, java.lang.Object par)
- Specified by:
visitin interfaceCompilationContext.Visitor<java.lang.Object,java.lang.Object>
-
visit
public java.lang.Object visit(ScenarioGroup scenarioGroup, Scope par)
- Specified by:
visitin interfaceScenarioGroup.Visitor<Scope,java.lang.Object>
-
visit
public java.lang.Object visit(ScenarioFile scenarioFile, Scope par)
- Specified by:
visitin interfaceScenarioFile.Visitor<Scope,java.lang.Object>
-
visit
public java.lang.Object visit(Scenario scenario, Scope par)
- Specified by:
visitin interfaceScenario.Visitor<Scope,java.lang.Object>
-
visit
public Name visit(Name name, Scope par)
- Specified by:
visitin interfaceName.Visitor<Scope,Name>
-
visit
public Name visit(ResolvedName resolvedName, Scope par)
- Specified by:
visitin interfaceName.Visitor<Scope,Name>- Specified by:
visitin interfaceResolvedName.Visitor<Scope,Name>
-
visit
public Name visit(UnresolvedName unresolvedName, Scope par)
- Specified by:
visitin interfaceName.Visitor<Scope,Name>- Specified by:
visitin interfaceUnresolvedName.Visitor<Scope,Name>
-
-