public class PointerUtility
extends java.lang.Object
Constructor and Description |
---|
PointerUtility() |
Modifier and Type | Method and Description |
---|---|
static boolean |
equals(PointerElement pointer,
PointerElement pointer2) |
static boolean |
equals(Pointer pointer,
Pointer pointer2) |
private static Variable |
findInstanceVariable(java.lang.String variable,
GeppettoModel model) |
private static GeppettoLibrary |
findLibrary(GeppettoModel model,
java.lang.String libraryId) |
private static Type |
findType(java.lang.String typeId,
GeppettoLibrary library) |
private static Type |
findType(java.lang.String type,
Variable variable) |
private static Variable |
findVariable(java.lang.String variable,
CompositeType type) |
static GeppettoLibrary |
getGeppettoLibrary(Pointer pointer) |
static java.lang.Integer |
getIndex(java.lang.String token) |
static java.lang.String |
getInstancePath(Variable variable,
Type type) |
static java.lang.String |
getPathWithoutTypes(java.lang.String path) |
static Pointer |
getPointer(GeppettoModel model,
java.lang.String instancePath) |
static Pointer |
getPointer(Variable variable,
Type type,
java.lang.Integer index) |
static Type |
getType(GeppettoModel model,
java.lang.String path) |
static Type |
getType(Pointer pointer) |
static java.lang.String |
getType(java.lang.String token) |
static Value |
getValue(GeppettoModel model,
java.lang.String path,
Type stateVariablType) |
static Variable |
getVariable(Pointer pointer) |
static java.lang.String |
getVariable(java.lang.String token) |
public static Pointer getPointer(Variable variable, Type type, java.lang.Integer index)
variable
- type
- index
- public static Pointer getPointer(GeppettoModel model, java.lang.String instancePath) throws GeppettoModelException
model
- instancePath
- GeppettoModelException
public static Type getType(GeppettoModel model, java.lang.String path) throws GeppettoModelException
model
- instancePath
- GeppettoModelException
public static Value getValue(GeppettoModel model, java.lang.String path, Type stateVariablType) throws GeppettoModelException
GeppettoModelException
private static Type findType(java.lang.String typeId, GeppettoLibrary library)
typeId
- library
- private static GeppettoLibrary findLibrary(GeppettoModel model, java.lang.String libraryId)
model
- libraryId
- GeppettoModelException
public static boolean equals(Pointer pointer, Pointer pointer2)
pointer
- pointer2
- public static boolean equals(PointerElement pointer, PointerElement pointer2)
pointer
- pointer2
- public static GeppettoLibrary getGeppettoLibrary(Pointer pointer)
pointer
- public static java.lang.String getInstancePath(Variable variable, Type type)
variable
- type
- private static Type findType(java.lang.String type, Variable variable) throws GeppettoModelException
type
- GeppettoModelException
private static Variable findInstanceVariable(java.lang.String variable, GeppettoModel model) throws GeppettoModelException
variable
- GeppettoModelException
private static Variable findVariable(java.lang.String variable, CompositeType type) throws GeppettoModelException
variable
- GeppettoModelException
public static java.lang.String getType(java.lang.String token)
token
- public static java.lang.String getVariable(java.lang.String token)
token
- public static java.lang.Integer getIndex(java.lang.String token)
token
- public static java.lang.String getPathWithoutTypes(java.lang.String path)
path
-