|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectdk.brics.xact.analysis.config.StandardConfiguration
public class StandardConfiguration
| Constructor Summary | |
|---|---|
StandardConfiguration()
|
|
| Method Summary | |
|---|---|
boolean |
canCallExtern(InvokeExpr expr)
Returns true if the specified invocation may lead to a non-application class |
Collection<URL> |
getAdditionalSchemas()
Returns the locations of some additional schemas that should be accesible to the application classes. |
String |
getBasedir()
|
ExecutorService |
getExecutorService()
|
String |
getFieldType(SootField field,
String annotation)
Returns the type of XML allowed in the specified field. |
Set<ValueBox> |
getHotspots()
Expressions in the analyzed program whose XML graph should be available so they can be analyzed outside the XACT analysis. |
String |
getMethodParameterType(SootMethod method,
int param,
String annotation)
Returns the type of XML required by the specified method parameter, or null if any XML may be given as parameter. |
String |
getMethodReturnType(SootMethod method,
String annotation)
Returns the type of XML returned by the specified method, or null if any XML may be returned. |
boolean |
hasExternalSubtypes(SootClass clazz)
Returns true if the specified class or interface may have implementations in non-application code. |
boolean |
isExternallyCallable(SootMethod method)
Returns true if the specified method can be called from the VM or from a non-application class. |
boolean |
isNormalCollection(String qualifiedName)
Returns true if the specified non-abstract class denotes a collection that can be expected to behave as a normal collection. |
void |
modifyNamespaces(Map<String,String> namespaces)
Lets the configuration modify the namespace prefix map. |
dk.brics.automaton.Automaton |
resolveToString(SootClass clazz)
Returns the strings that may be returned by the specified type's toString method, or null if nothing special is known about the toString method. |
String |
resolveToXML(SootMethod toXmlMethod)
Models the behaviour of toXML methods declared in non-application classes. |
void |
setBasedir(String basedir)
|
String |
translateSchemaLocation(String location)
Translates a schema location to another URL string (possibly the same). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StandardConfiguration()
| Method Detail |
|---|
public boolean canCallExtern(InvokeExpr expr)
Configuration
canCallExtern in interface Configurationexpr - an invocation expression
public Collection<URL> getAdditionalSchemas()
Configuration
getAdditionalSchemas in interface Configurationpublic String getBasedir()
public ExecutorService getExecutorService()
public String getFieldType(SootField field,
String annotation)
Configuration
getFieldType in interface Configurationfield - a fieldannotation - the type placed with a @Type annotation, or null if no @Type annotation is present
public Set<ValueBox> getHotspots()
Configuration
getHotspots in interface Configuration
public String getMethodParameterType(SootMethod method,
int param,
String annotation)
Configuration
getMethodParameterType in interface Configurationmethod - a non-application or application methodparam - index of a parameter whose type is a subtype of XMLannotation - the type placed with a @Type annotation, or null if no @Type annotation is present
public String getMethodReturnType(SootMethod method,
String annotation)
Configuration
getMethodReturnType in interface Configurationmethod - a non-application or application method returning a subtype of XML.annotation - the type placed with a @Type annotation, or null if no @Type annotation is present
public boolean hasExternalSubtypes(SootClass clazz)
Configuration
hasExternalSubtypes in interface Configurationclazz - a class or interface
public boolean isExternallyCallable(SootMethod method)
Configuration
isExternallyCallable in interface Configurationmethod - an application method
public boolean isNormalCollection(String qualifiedName)
ConfigurationCollection and List interfaces and those added in a non-empty constructor.
Additionally, all its methods must adhere to their specifications in Collection and List.
isNormalCollection in interface ConfigurationqualifiedName - fully qualified name of a non-abstract class implementing Collection . Eg. java.util.ArrayList.
public void modifyNamespaces(Map<String,String> namespaces)
Configuration
modifyNamespaces in interface Configurationnamespaces - map from namespace prefixes to namespaces. May be modified.public dk.brics.automaton.Automaton resolveToString(SootClass clazz)
Configuration
resolveToString in interface Configurationclazz - a class
public String resolveToXML(SootMethod toXmlMethod)
ConfigurationConfiguration.modifyNamespaces(Map)
and defined in a schema referred to by Configuration.getAdditionalSchemas().
This method should return null if nothing is known about the method.
resolveToXML in interface ConfigurationtoXmlMethod - a toXML method declared in a non-application class
public void setBasedir(String basedir)
public String translateSchemaLocation(String location)
Configuration
translateSchemaLocation in interface Configuration
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||