|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.owasp.orizon.O
org.owasp.orizon.core.Method
public class Method
The Method object represents:
| Field Summary |
|---|
| Fields inherited from class org.owasp.orizon.O |
|---|
base64, hasName, initialized, line_start, line_stop, log, name, reduced, what |
| Constructor Summary | |
|---|---|
Method()
Deprecated. |
|
Method(org.w3c.dom.Node n)
Creates a new Method object from an XML node |
|
Method(java.lang.String name)
Deprecated. |
|
| Method Summary | |
|---|---|
int |
addParam(Param oP)
Adds a method parameter |
boolean |
check(Check c)
As far from version 0.62 all items must be responsible for checking themselves for security vulnerabilities. |
java.lang.String |
getBody()
Gets the method body |
java.lang.String |
getCode()
Returns the method code |
Param |
getParam(int index)
Returns a method parameter |
int |
getParamCount()
Calculates how many parameters are available |
java.lang.String |
getRetType()
Return method return type. |
java.lang.String |
getScope()
Gets the method scope |
boolean |
hasEmptyCatch()
Returns the emptyCatch flag value |
boolean |
isPublic()
Check this method's scope. |
boolean |
readXmlNode(org.w3c.dom.Node n)
As far from version 0.62 all items must be responsible for XML Node reading routine. |
void |
setBody(java.lang.String body)
Sets the method body |
void |
setCode(java.lang.String code)
Sets the method code |
void |
setEmptyCatch()
Sets the emptyCatch flag to true |
void |
setIsPublic(boolean pub)
Set this method scope. |
void |
setRetType(java.lang.String retType)
Set the method return type. |
void |
setScope(java.lang.String scope)
Sets the method scope |
java.lang.String |
signature()
Prints out the method signature |
java.lang.String |
signature(boolean forceStatic)
Prints out the method signature |
| Methods inherited from class org.owasp.orizon.O |
|---|
clone, getName, getStartLine, getStopLine, isCompatible, isInitialized, setName, setStartLine, setStopLine, trackThis |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Method()
public Method(java.lang.String name)
name - the method namepublic Method(org.w3c.dom.Node n)
n - the XML node being read| Method Detail |
|---|
public final java.lang.String getRetType()
public final void setRetType(java.lang.String retType)
retType - the method return type.public final boolean isPublic()
true if the method is public or false
otherwisepublic final void setIsPublic(boolean pub)
pub - true if the method is public, false otherwise.public void setEmptyCatch()
public boolean hasEmptyCatch()
public int addParam(Param oP)
oP - the org.owasp.orizon.core.Param object to add
public Param getParam(int index)
index - the requested parameter index
public final java.lang.String getCode()
public final void setCode(java.lang.String code)
code - the method code to set.public final int getParamCount()
public java.lang.String getBody()
public void setBody(java.lang.String body)
body - the method body to be set uppublic java.lang.String signature()
public java.lang.String signature(boolean forceStatic)
forceStatic - tell if the method must be forced to be static in signature
public final void setScope(java.lang.String scope)
scope - the method scopepublic final java.lang.String getScope()
public boolean readXmlNode(org.w3c.dom.Node n)
O
readXmlNode in class On - the node being read
public boolean check(Check c)
O
check in class Oc - the security check that must be applied
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||